:root {
    /* Theme Variables - Dark Mode Default */
    --bg-main: #0f172a;
    /* Slate 900 */
    --bg-card: #1e293b;
    /* Slate 800 */
    --bg-hover: #334155;
    /* Slate 700 - used for hovers */
    --text-main: #f8fafc;
    /* Slate 50 */
    --text-muted: #94a3b8;
    /* Slate 400 */
    --border-main: #334155;
    /* Slate 700 */
    --accent-primary: #3b82f6;
    /* Blue 500 */
    --table-header-bg: #1e293b;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
}

/* Monday.com Style Sticky Columns */
.table-responsive {
    overflow-x: auto;
    scrollbar-width: thin;
}

.table-sticky-columns {
    border-collapse: separate;
    border-spacing: 0;
}

.table-sticky-columns th.sticky-col,
.table-sticky-columns td.sticky-col {
    position: sticky;
    z-index: 10;
    background-color: var(--bg-card) !important;
    border-right: 1px solid var(--border-main) !important;
    color: var(--text-main);
}

.sticky-col-1 {
    left: 0;
    width: 60px;
    min-width: 60px;
}

.sticky-col-2 {
    left: 60px;
    /* Offset by width of col 1 */
    width: 120px;
    min-width: 120px;
}

/* Shadow indicator when scrolling */
.table-sticky-columns td.sticky-col-2,
.table-sticky-columns th.sticky-col-2 {
    box-shadow: 4px 0 8px rgba(0, 0, 0, 0.05);
}

/* Consistency for striped/hovered rows */
.table-striped>tbody>tr:nth-of-type(odd)>.sticky-col {
    background-color: var(--bg-main) !important;
}

.table-hover>tbody>tr:hover>.sticky-col {
    background-color: var(--bg-hover) !important;
}

/* Header style for sticky */
.table-sticky-columns thead th.sticky-col {
    background-color: var(--table-header-bg) !important;
    color: var(--text-main);
    z-index: 11;
}

/* Custom Scrollbar for Sidebar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Skeleton Loading Animation */
/* Skeleton Loading Animation - Optimized */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.skeleton {
    position: relative;
    overflow: hidden;
    background: #1e293b;
}

.skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    animation: shimmer 1.5s infinite;
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
}

.skeleton-rect {
    height: 100%;
    width: 100%;
    border-radius: 0.5rem;
}

/* Specific skeleton overrides for table */
.skeleton-row td {
    border-bottom: 1px solid #334155;
    padding: 1rem;
    height: 65px;
    /* Match approximate height of real rows */
    vertical-align: middle;
}

.skeleton-bar {
    height: 24px;
    width: 100%;
    border-radius: 4px;
}

/* Watch Selection Mode */
.show-watch-selection .watch-checkbox {
    display: block !important;
}

.show-watch-selection .watch-star-btn {
    display: block !important;
    /* Keep stars visible to allow untoggling? Or maybe hide stars if we want clear checkbox mode? User said "when I click the case appears". Usually better to hide star if checkbox is there, or keep both? */
    /* Let's keep star hidden to reduce clutter if checkbox is the primary action now, OR maybe just overlay? */
    /* User said "clique le case a cocher s'affiche". */
    /* Let's hide the star to make it clear we are in selection mode. */
    display: none !important;
}

/* Ensure checkbox is easily clickable */
.watch-checkbox {
    cursor: pointer;
    width: 18px;
    height: 18px;
}