/* assets/css/cbb-command-center.css - College Basketball Theme Styling */

:root {
    /* Dark Dashboard - Green/Teal/Bright Accents Theme (Outlier-inspired) */
    --bg-primary: #191919;          /* Matches site header */
    --bg-secondary: #1f1f1f;        /* Dark card background */
    --bg-tertiary: #2a2a2a;         /* Medium dark for contrast */
    --cbb-orange: #EF4444;          /* Bright red accent */
    --cbb-orange-dark: #DC2626;     /* Red hover state */
    --cbb-blue: #3B82F6;            /* Bright blue accent */
    --cbb-green: #10B981;           /* Emerald green (primary accent) */
    --cbb-teal: #14B8A6;            /* Teal accent (secondary) */
    --cbb-red: #EF4444;             /* Bright red */
    --spider-red: #EF4444;          /* Richmond red (brighter) */
    --silver: #94A3B8;              /* Light grey text */
    --white: #F8FAFC;               /* Bright white text */
    --text-light: #F8FAFC;          /* Light text on dark */
    --text-muted: #94A3B8;          /* Muted text */
    --red: #EF4444;                 /* UI red */
    --green: #10B981;               /* UI green */
    --yellow: #FBBF24;              /* Bright yellow */
    --purple: #A855F7;              /* Purple accent */
    --cyan: #06B6D4;                /* Cyan accent */
    --border: rgba(148, 163, 184, 0.15);      /* Subtle border */
    --shadow-green: rgba(16, 185, 129, 0.3);  /* Green glow */
    --shadow-teal: rgba(20, 184, 166, 0.3);   /* Teal glow */
    --shadow-dark: rgba(0, 0, 0, 0.5);
    --parquet: #10B981;             /* Green primary */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Games Ticker Styles */
.games-ticker {
    background: linear-gradient(to right,
        rgba(16, 185, 129, 0.05),
        var(--bg-primary) 20%,
        var(--bg-primary) 80%,
        rgba(59, 130, 246, 0.05));
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    border-bottom: 2px solid var(--parquet);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--parquet) var(--bg-secondary);
}

.games-ticker::-webkit-scrollbar {
    height: 6px;
}

.games-ticker::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.games-ticker::-webkit-scrollbar-thumb {
    background: var(--parquet);
    border-radius: 3px;
}

.ticker-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 20px;
    min-width: max-content;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.cbb-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--parquet), var(--cbb-orange-dark));
    padding: 6px;
}

.brand-name {
    font-size: 18px;
    font-weight: 900;
    color: var(--white);
    line-height: 1.3;
    text-shadow: 0 2px 8px var(--shadow-green);
}

.sub-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--silver);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-style: italic;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: var(--silver);
}

.ticker-container {
    display: flex;
    gap: 12px;
    min-width: max-content;
}

.game-card {
    background: linear-gradient(to right,
        var(--bg-secondary),
        var(--bg-tertiary));
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px;
    min-width: 140px;
    max-width: 140px;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 8px var(--shadow-dark);
}

.game-card:hover {
    transform: translateY(-2px);
    border-color: var(--cbb-green);
    box-shadow: 0 4px 16px var(--shadow-green);
}

.game-info-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 8px;
}

.game-info-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    gap: 8px;
}

.game-time-badge {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 600;
    color: var(--white);
    flex: 1;
    text-align: center;
}

.game-ou-badge {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 600;
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--silver);
}

.game-ou-badge.ou-low {
    background: var(--bg-tertiary);
    border-color: var(--red);
}

.game-ou-badge.ou-low .ou-value {
    color: var(--red);
}

.game-ou-badge.ou-medium {
    background: var(--bg-tertiary);
    border-color: var(--yellow);
}

.game-ou-badge.ou-medium .ou-value {
    color: var(--yellow);
}

.game-ou-badge.ou-high {
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(16, 185, 129, 0.1));
    border-color: var(--cbb-green);
    box-shadow: 0 0 10px var(--shadow-green);
}

.game-ou-badge.ou-high .ou-value {
    color: var(--cbb-green);
    font-weight: 800;
}

.ou-label {
    font-size: 9px;
    color: var(--silver);
    opacity: 0.9;
}

.ou-value {
    font-size: 11px;
    font-weight: 700;
}

.teams-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.team-logo-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.game-card:hover .team-logo-wrapper {
    transform: scale(1.05);
}

.team-logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
}

/* Prevent infinite image loading loop */
.team-logo-wrapper img[style*="display: none"] {
    display: none !important;
}

/* Team abbreviation fallback when no logo */
.team-abbr {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-ml-badge {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 9px;
    font-weight: 700;
    color: var(--silver);
    min-width: 36px;
    text-align: center;
    transition: all 0.3s;
}

.team-ml-badge.favorite {
    background: linear-gradient(135deg, var(--parquet), var(--cbb-orange-dark));
    color: var(--white);
    border-color: var(--parquet);
    box-shadow: 0 2px 6px var(--shadow-orange);
}

/* Navigation */
.sub-nav {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow-x: auto;
    position: sticky;
    top: 72px;
    z-index: 900;
    scrollbar-width: thin;
    padding: 0 20px;
}

.nav-item {
    padding: 16px 24px;
    color: var(--silver);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
    font-weight: 500;
    position: relative;
}

.nav-item:hover {
    color: var(--cbb-green);
    background: rgba(16, 185, 129, 0.05);
}

.nav-item.active {
    color: var(--cbb-green);
    border-bottom-color: var(--cbb-green);
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 2px 8px var(--shadow-green);
}

.sub-nav .header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
    flex-shrink: 0;
}

/* Theme Toggle Button */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    margin-right: 12px;
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    border-color: var(--cbb-orange);
    transform: scale(1.05);
}

.theme-toggle i {
    font-size: 18px;
    position: absolute;
    transition: all 0.3s ease;
}

#lightIcon {
    color: var(--yellow);
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

#darkIcon {
    color: var(--cbb-blue);
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Light mode icon states */
[data-theme="light"] #lightIcon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] #darkIcon {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

/* Platform Toggle */
.platform-toggle {
    display: flex;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 4px;
    border: 1px solid var(--border);
}

.toggle-btn {
    padding: 8px 14px;
    border: none;
    background: transparent;
    color: var(--silver);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 13px;
}

.toggle-btn:hover {
    color: var(--white);
    background: rgba(255, 107, 53, 0.1);
}

.toggle-btn.active {
    background: linear-gradient(135deg, var(--cbb-teal), #0D9488);
    color: var(--bg-primary);
    font-weight: 700;
    box-shadow: 0 2px 8px var(--shadow-teal);
}

/* Date Picker */
.date-picker input {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--white);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.date-picker input:hover {
    border-color: var(--cbb-orange);
}

.date-picker input:focus {
    outline: none;
    border-color: var(--cbb-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Slate Selector */
.slate-selector {
    display: flex;
    gap: 8px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.slate-btn {
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: var(--silver);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 500;
    position: relative;
}

.slate-btn:hover {
    color: var(--cbb-green);
    background: rgba(16, 185, 129, 0.1);
}

.slate-btn.active {
    background: linear-gradient(135deg, var(--cbb-green), #059669);
    color: var(--bg-primary);
    font-weight: 700;
    box-shadow: 0 2px 8px var(--shadow-green);
}

.game-count {
    font-size: 11px;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
}

/* Dashboard Content */
.dashboard-content {
    padding: 20px;
    max-width: 100%;
    background: linear-gradient(to right,
        rgba(16, 185, 129, 0.02),
        transparent 15%,
        transparent 85%,
        rgba(59, 130, 246, 0.02));
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr 420px;
    gap: 20px;
    max-width: 100%;
}

@media (max-width: 1400px) {
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Widget Styles */
.widget {
    background: linear-gradient(to right,
        var(--bg-secondary),
        rgba(42, 42, 42, 0.6),
        var(--bg-secondary));
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: visible;
    transition: all 0.3s;
    box-shadow: 0 2px 8px var(--shadow-dark);
}

.widget .widget-content {
    overflow-x: visible;
}

.widget .widget-content table {
    width: 100%;
}

/* Override for CBB dashboard tables - need scrolling wrapper */
.widget .widget-content .cbb-table-wrap {
    overflow-x: scroll !important;
    overflow-y: visible;
    padding: 0;
    width: 100%;
}

.widget .widget-content .cbb-dashboard-table {
    width: max-content !important;
    table-layout: auto !important;
    font-size: 11px !important;
    background: #0a0a0a !important;
}

.widget .widget-content .cbb-dashboard-table thead th {
    background: #1a1a1a !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 10px 10px !important;
    font-size: 9px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #2a2a2a;
    white-space: nowrap;
}

.widget .widget-content .cbb-dashboard-table tbody td {
    padding: 8px 10px !important;
    font-size: 11px !important;
    border-left: 1px solid #1a1a1a;
    border-right: 1px solid #1a1a1a;
    white-space: nowrap;
}

.widget .widget-content .cbb-dashboard-table tbody tr {
    background: #252525;
}

.widget .widget-content .cbb-dashboard-table tbody tr:nth-child(even) {
    background: #1f1f1f !important;
}

.widget .widget-content .cbb-dashboard-table tbody tr:nth-child(odd) {
    background: #252525 !important;
}

.widget .widget-content .cbb-dashboard-table tbody tr:hover {
    background: #333 !important;
}

.widget .widget-content .cbb-dashboard-table .first-col.sticky-col {
    left: 0;
    position: sticky;
    z-index: 15;
    font-weight: 700;
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    font-size: 11px !important;
    background: #0a0a0a;
}

.widget .widget-content .cbb-dashboard-table .second-col.sticky-col {
    left: 50px;
    position: sticky;
    z-index: 15;
    width: 140px !important;
    min-width: 140px !important;
    max-width: 140px !important;
    font-size: 11px !important;
    background: #0a0a0a;
}

.widget:hover {
    border-color: var(--cbb-green);
    box-shadow: 0 4px 16px var(--shadow-green);
}

.widget-header {
    background: var(--bg-tertiary);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
    color: var(--white);
}

.widget-icon {
    font-size: 20px;
}

.widget-content {
    padding: 20px;
}

/* Remove padding for table widgets with horizontal scroll */
.widget .widget-content:has(.cbb-table-wrap) {
    padding: 0;
}

/* Player Table Styles */
.player-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.player-table thead {
    background: var(--bg-tertiary);
    position: sticky;
    top: 0;
    z-index: 10;
}

.player-table th {
    padding: 8px;
    text-align: center;
    font-weight: 600;
    color: var(--silver);
    border-bottom: 2px solid var(--cbb-orange);
    white-space: nowrap;
}

.player-table td {
    padding: 6px 8px;
    text-align: center;
}

.player-table tbody tr {
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.player-table tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.02);
}

.player-table tbody tr:nth-child(even) td:not(.team-cell-shaded) {
    background: rgba(255,255,255,0.02);
}

.player-table tbody tr:nth-child(odd) {
    background: rgba(255,255,255,0.05);
}

.player-table tbody tr:nth-child(odd) td:not(.team-cell-shaded) {
    background: rgba(255,255,255,0.05);
}

/* Ensure sticky columns inherit row background (skip team-cell-shaded) */
.player-table tbody tr:nth-child(even) td:nth-child(1) {
    background: rgba(255,255,255,0.02);
}

.player-table tbody tr:nth-child(odd) td:nth-child(1) {
    background: rgba(255,255,255,0.05);
}

.player-table tbody tr:hover {
    background: var(--bg-tertiary);
    cursor: pointer;
}

.player-table tbody tr:hover td:not(.team-cell-shaded) {
    background: var(--bg-tertiary);
}

.player-name {
    font-weight: 600;
    color: #fff;
}

.player-name-cell strong {
    color: #fff;
}

.player-position {
    font-size: 11px;
    color: var(--silver);
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.player-team {
    font-size: 11px;
    color: var(--silver);
}

.salary {
    color: var(--green);
    font-weight: 600;
}

.value-high {
    color: var(--green);
    font-weight: 600;
}

.value-medium {
    color: var(--yellow);
}

.value-low {
    color: var(--red);
}

/* Game Card Detailed */
.game-card-detailed {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.game-card-detailed:hover {
    border-color: var(--cbb-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-orange);
}

.game-matchup {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.team-side {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    position: relative;
}

.team-logo-container {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.team-logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team-abbr {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
}

.ml-odds {
    font-size: 12px;
    color: var(--silver);
}

.ml-odds.is-favorite-odds {
    color: var(--cbb-orange);
    font-weight: 700;
}

.favorite-star {
    color: var(--cbb-orange);
    font-size: 18px;
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
}

.vs-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.vs-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--silver);
}

.total-badge {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    color: var(--cbb-orange);
    font-weight: 600;
}

/* Footer */
.cbb-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 16px 20px;
    text-align: center;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    color: var(--silver);
    font-size: 13px;
}

.last-update {
    color: var(--silver);
}

.data-source {
    color: var(--silver);
}

/* Responsive */
@media (max-width: 768px) {
    .game-card {
        min-width: 130px;
        max-width: 130px;
    }

    .team-logo-wrapper {
        width: 46px;
        height: 46px;
    }

    .dashboard-content {
        padding: 10px;
    }

    .sub-nav {
        padding: 0 10px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-item {
        padding: 10px 12px;
        font-size: 12px;
        flex-shrink: 0;
    }

    /* Mobile table scroll fix */
    .widget .widget-content {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .cbb-table-wrap {
        overflow-x: scroll !important;
        -webkit-overflow-scrolling: touch;
    }

    .player-table,
    .cbb-dashboard-table {
        min-width: 600px;
    }

    /* Mobile controls - horizontal scroll */
    .sub-nav .header-controls {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
    }

    .platform-toggle,
    .slate-selector,
    .filter-controls {
        flex-shrink: 0;
        flex-wrap: nowrap;
    }

    .toggle-btn,
    .slate-btn,
    .filter-btn {
        padding: 6px 10px;
        font-size: 11px;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .date-picker input {
        padding: 6px 10px;
        font-size: 11px;
    }
}

/* Loading States */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--silver);
}

.loading::after {
    content: '...';
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Team Badge */
.team-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-cell {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 8px 12px !important;
}

.player-team-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-right: 8px;
    vertical-align: middle;
    display: inline-block;
}

.player-team-logo.img-error {
    display: none;
}

.player-name-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-cell-shaded {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.8px;
    text-align: center;
    padding: 6px 8px !important;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.pos-cell {
    font-weight: 600;
    font-size: 11px;
    text-align: center;
}

.sal-cell {
    font-weight: 600;
    font-size: 11px;
    color: var(--silver);
}

.proj-cell {
    font-weight: 700;
    font-size: 12px;
    color: var(--cbb-green);
}

/* Stack Cards */
.stack-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.3s;
}

.stack-card:hover {
    border-color: var(--cbb-orange);
    box-shadow: 0 4px 12px var(--shadow-dark);
}

.stack-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.stack-header h4 {
    font-size: 16px;
    color: var(--white);
    margin: 0;
}

.stack-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.total-proj {
    background: var(--bg-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--cbb-orange);
    font-weight: 600;
}

.stack-players {
    margin-top: 12px;
}

.stack-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.stack-table th {
    background: var(--bg-secondary);
    padding: 8px;
    text-align: left;
    font-weight: 600;
    color: var(--silver);
    border-bottom: 1px solid var(--border);
}

.stack-table td {
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stack-table tbody tr:hover {
    background: var(--bg-primary);
}

/* Game Environment Grid */
.game-environment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    justify-content: center;
}

.game-env-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    transition: all 0.3s;
}

.game-env-card:hover {
    border-color: var(--cbb-orange);
    box-shadow: 0 4px 12px var(--shadow-dark);
}

.game-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
}

.game-teams .vs {
    color: var(--silver);
    font-weight: 400;
    font-size: 12px;
}

.game-stats {
    display: flex;
    justify-content: space-around;
    gap: 12px;
}

.game-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.game-stats .stat label {
    font-size: 11px;
    color: var(--silver);
    text-transform: uppercase;
}

.game-stats .stat .value {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
}

.game-stats .stat .value.high {
    color: var(--green);
}

.game-stats .stat .value.medium {
    color: var(--yellow);
}

.game-stats .stat .value.low {
    color: var(--red);
}

/* Value Cell Highlighting */
.value-cell {
    font-weight: 600;
}

.high-value {
    color: var(--green) !important;
}

.med-value {
    color: var(--yellow) !important;
}

.high-salary {
    background: rgba(255, 107, 53, 0.05);
}

/* Widget Subtitle */
.widget-subtitle {
    font-size: 12px;
    color: var(--silver);
    margin: 4px 0 0 0;
    font-weight: 400;
}

/* Full Width Widget */
.widget.full-width {
    grid-column: 1 / -1;
}

/* Full Table */
.full-table {
    width: 100%;
}

.full-table th {
    position: sticky;
    top: 0;
    background: var(--bg-tertiary);
    z-index: 10;
}

/* Salary Cell */
.salary-cell {
    color: var(--green);
    font-weight: 600;
}

/* Projection Cell */
.projection-cell {
    color: var(--cbb-orange);
    font-weight: 600;
}

/* Coming Soon */
.coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--silver);
    text-align: center;
}

.coming-soon i {
    font-size: 48px;
    color: var(--parquet);
    margin-bottom: 20px;
}

.coming-soon p {
    font-size: 16px;
    color: var(--silver);
}

/* Filter Controls */
.filter-controls {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 6px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--silver);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 12px;
    font-weight: 500;
}

.filter-btn:hover {
    color: var(--cbb-blue);
    border-color: var(--cbb-blue);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--cbb-blue), #2563EB);
    color: var(--white);
    font-weight: 600;
    border: none;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

/* Position View */
.position-view {
    width: 100%;
}

/* Stacks Overview Grid */
.stacks-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    justify-content: center;
}

.stack-overview-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    transition: all 0.3s;
}

.stack-overview-card:hover {
    border-color: var(--cbb-orange);
    box-shadow: 0 4px 12px var(--shadow-dark);
}

.stack-overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.stack-overview-header h4 {
    font-size: 14px;
    color: var(--white);
    margin: 0;
    font-weight: 600;
}

.stack-overview-header .vs-text {
    color: var(--silver);
    font-weight: 400;
    font-size: 12px;
}

.stack-total-proj {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-tertiary);
    padding: 6px 12px;
    border-radius: 6px;
}

.stack-total-proj .label {
    font-size: 10px;
    color: var(--silver);
    text-transform: uppercase;
}

.stack-total-proj .value {
    font-size: 13px;
    color: var(--cbb-orange);
    font-weight: 700;
}

.stack-overview-players {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stack-player-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    transition: all 0.2s;
}

.stack-player-item:hover {
    background: var(--bg-secondary);
}

.stack-player-item .player-name {
    font-size: 12px;
    color: var(--white);
    font-weight: 500;
}

.stack-player-item .player-proj {
    font-size: 12px;
    color: var(--cbb-orange);
    font-weight: 600;
}

/* Top Games List */
.top-games-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.game-stack-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    transition: all 0.3s;
}

.game-stack-card:hover {
    border-color: var(--cbb-orange);
    box-shadow: 0 2px 8px var(--shadow-dark);
}

.game-stack-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
}

.game-stack-teams .at {
    color: var(--silver);
    font-weight: 400;
    font-size: 11px;
}

.game-stack-meta {
    display: flex;
    justify-content: space-around;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.meta-item .label {
    font-size: 10px;
    color: var(--silver);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-item .value {
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }

/* Matchup Dashboard Styles */
.matchup-container {
    background: #1B2845;
    padding: 20px;
    border-radius: 8px;
}

.matchup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #2a3f5f, #1B2845);
    border-radius: 8px;
}

.team-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
}

.team-logo-large {
    width: 100px;
    height: 100px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 10px;
}

.team-name {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-align: center;
}

.game-info-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20%;
}

.game-time {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 10px;
}

.vs-divider {
    font-size: 32px;
    color: #ffc107;
    font-weight: bold;
}

.odds-display {
    margin-top: 10px;
    font-size: 14px;
    color: #28a745;
}

.matchup-body {
    display: flex;
    gap: 20px;
}

.team-players {
    flex: 1;
    background: #243447;
    border-radius: 8px;
    padding: 15px;
}

.team-players h3 {
    color: #ffc107;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid #ffc107;
    padding-bottom: 10px;
}

/* Player row in matchup context - uses grid layout */
.team-players .player-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
    gap: 10px;
    padding: 10px;
    background: #1B2845;
    margin-bottom: 5px;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    align-items: center;
}

/* Player row in table context - inherits table row behavior */
table .player-row {
    display: table-row;
}

.player-row:hover {
    background: #2a3f5f;
}

.player-name {
    font-weight: bold;
    color: #fff;
}

.player-position {
    color: #6c757d;
    font-size: 11px;
}

.player-stats {
    text-align: center;
}

.stat-label {
    font-size: 10px;
    color: #6c757d;
    display: block;
}

.stat-value {
    color: #28a745;
    font-weight: bold;
}

.salary-value {
    color: #ffc107;
    font-weight: bold;
}

.rating-value {
    color: #17a2b8;
    font-weight: bold;
}

.injured-section {
    margin-top: 20px;
    padding: 15px;
    background: #3d1f1f;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
}

.injured-section h4 {
    color: #dc3545;
    margin-bottom: 10px;
    font-size: 14px;
}

.injured-player {
    padding: 8px;
    background: #2a1515;
    margin-bottom: 5px;
    border-radius: 4px;
    color: #dc3545;
    font-size: 12px;
}

.gamelog-link {
    color: #17a2b8;
    text-decoration: none;
    font-size: 11px;
}

.gamelog-link:hover {
    text-decoration: underline;
}

/* Player Detail Panel Styles */
.player-name[onclick] {
    transition: all 0.2s ease;
}

.player-name[onclick]:hover {
    color: var(--cbb-green) !important;
    text-decoration: underline;
    text-decoration-color: var(--cbb-green);
}

.player-name[onclick]:active {
    transform: scale(0.98);
}

#player-detail-sidebar {
    transition: transform 0.3s ease-in-out;
}

#player-detail-sidebar.slide-in {
    transform: translateX(0);
}

#player-detail-sidebar.slide-out {
    transform: translateX(100%);
}

/* Sticky Column Styles (NFL-style) */
.sticky-col {
    position: -webkit-sticky;
    position: sticky;
    z-index: 5;
}

/* Default background for sticky columns (can be overridden by inline styles) */
.cbb-dashboard-table tbody tr:nth-child(even) .sticky-col:not([style*="background"]) {
    background: rgba(255,255,255,0.02);
}

.cbb-dashboard-table tbody tr:nth-child(odd) .sticky-col:not([style*="background"]) {
    background: rgba(255,255,255,0.05);
}

/* Sticky column widths - consolidated */
.first-col {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    left: 0px !important;
}

.second-col {
    width: 140px !important;
    min-width: 140px !important;
    max-width: 140px !important;
    left: 50px !important;
}

/* Table wrapper for horizontal scroll */
.cbb-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: #444 #1a1a1a;
    -webkit-overflow-scrolling: touch;
}

.cbb-table-wrap::-webkit-scrollbar {
    height: 6px;
}

.cbb-table-wrap::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.cbb-table-wrap::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

.cbb-table-wrap::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* CBB Dashboard Table - Compact NFL-Style */
.cbb-dashboard-table {
    width: max-content !important;
    min-width: 100%;
    border-collapse: collapse !important;
    font-size: 11px !important;
    background: #0a0a0a !important;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.cbb-dashboard-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.cbb-dashboard-table thead th {
    background: #1a1a1a !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 10px 10px !important;
    text-align: center;
    border: 1px solid #2a2a2a;
    border-top: none;
    white-space: nowrap;
    font-size: 9px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cbb-dashboard-table thead th:first-child {
    border-left: none;
}

.cbb-dashboard-table thead th:last-child {
    border-right: none;
}

.cbb-dashboard-table tbody tr {
    transition: background 0.15s ease;
    border-bottom: 1px solid #1a1a1a;
    background: #2a2a2a;
}

.cbb-dashboard-table tbody tr:nth-child(even) {
    background: #1f1f1f !important;
}

.cbb-dashboard-table tbody tr:nth-child(odd) {
    background: #252525 !important;
}

.cbb-dashboard-table tbody tr:hover {
    background: #333333 !important;
    cursor: pointer;
}

.cbb-dashboard-table tbody td {
    padding: 8px 10px !important;
    border-left: 1px solid #1a1a1a;
    border-right: 1px solid #1a1a1a;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    font-weight: 500;
    font-size: 11px !important;
    color: #fff;
}

.cbb-dashboard-table tbody td:first-child {
    border-left: none;
}

.cbb-dashboard-table tbody td:last-child {
    border-right: none;
}

/* Sticky columns for CBB */
.cbb-dashboard-table .sticky-col {
    position: sticky;
    z-index: 5;
    background: #0a0a0a;
}

.cbb-dashboard-table .first-col.sticky-col {
    left: 0;
    z-index: 15;
    font-weight: 700;
    width: 50px;
    min-width: 50px;
    max-width: 50px;
    border-right: 2px solid #2a2a2a !important;
    font-size: 11px;
}

.cbb-dashboard-table .second-col.sticky-col {
    left: 50px;
    z-index: 15;
    width: 140px;
    min-width: 140px;
    max-width: 140px;
    text-align: left !important;
    border-right: 2px solid #2a2a2a !important;
    font-weight: 600;
    font-size: 11px;
}

.cbb-dashboard-table tbody tr:hover .sticky-col {
    background: #2a2a2a !important;
}

/* Player cell styling - Compact */
.player-cell {
    font-weight: 600;
    color: #fff;
    text-align: left !important;
    white-space: nowrap;
    font-size: 11px;
}

.player-cell strong {
    font-size: 11px;
    color: #fff;
}

/* Rating cell styling */
.rating-cell {
    font-weight: 700;
    font-size: 11px;
}

/* Salary cell styling */
.salary-cell {
    font-family: 'Inter', monospace;
    font-weight: 600;
    font-size: 11px;
}

/* Cells with inline background colors - maintain weight */
.cbb-dashboard-table tbody td[style*="background"] {
    font-weight: 600;
}

/* NEWS TICKER - Removed for performance */

/* Widget Badge */
.widget-badge {
    font-size: 10px;
    padding: 4px 10px;
    background: rgba(220,20,60,0.2);
    color: var(--cbb-red, #DC143C);
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* Pace Item (for game totals) */
.pace-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.pace-item:last-child {
    border-bottom: none;
}

.pace-item .teams {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
}

.pace-stats {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-bottom: 6px;
}

.pace-stats .total {
    color: #888;
}

.pace-stats .projected {
    font-weight: 600;
}

.progress-bar {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cbb-red, #DC143C), #f97316);
    border-radius: 2px;
}
