/* ============================================================================
   The Huddle — Sports Intelligence Dashboard
   Bears Navy + Orange / Cubs Blue + Red dark theme
   ============================================================================ */

/* ── CSS Variables ─────────────────────────────────────────────────────────── */
:root {
    /* Dark theme palette — Bears Navy foundation */
    --bg-primary: #060b14;
    --bg-secondary: #0B162A;
    --bg-card: #111e34;
    --bg-card-hover: #172640;
    --bg-glass: rgba(11, 22, 42, 0.85);
    --bg-input: #132035;
    --border-color: rgba(255, 255, 255, 0.06);
    --border-active: rgba(200, 56, 3, 0.5);

    /* Text */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: #f0883e;

    /* Accents — Bears Orange → Cubs Red gradient */
    --accent-primary: #C83803;
    --accent-secondary: #CC3433;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    --accent-info: #3b82f6;

    /* Sport colors */
    --color-ncaa-football: #C83803;
    --color-ncaa-basketball: #e65100;
    --color-mlb: #0E3386;
    --color-nfl: #0B162A;
    --color-nhl: #CF0A2C;
    --color-nba: #CE1141;
    --color-f1: #d32f2f;
    --color-pga: #1b5e20;
    --color-betting: #f59e0b;
    --color-fantasy: #7b1fa2;

    /* Chicago team colors */
    --cubs-blue: #0E3386;
    --cubs-red: #CC3433;
    --bears-navy: #0B162A;
    --bears-orange: #C83803;
    --hawks-red: #CF0A2C;
    --bulls-red: #CE1141;

    /* Gradients — Bears Orange → Cubs Red */
    --gradient-primary: linear-gradient(135deg, #C83803 0%, #CC3433 50%, #0E3386 100%);
    --gradient-accent: linear-gradient(135deg, #C83803 0%, #E8520B 50%, #CC3433 100%);
    --gradient-dark: linear-gradient(180deg, #060b14 0%, #0B162A 100%);
    --gradient-card: linear-gradient(135deg, rgba(200, 56, 3, 0.08) 0%, rgba(14, 51, 134, 0.05) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px rgba(200, 56, 3, 0.2);

    /* Layout */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --sidebar-width: 280px;
    --header-height: 72px;
}

/* ── Reset & Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 15px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

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

/* Background texture */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(200, 56, 3, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(14, 51, 134, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(204, 52, 51, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

a { color: var(--text-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #a5b4fc; }

/* ── Layout ────────────────────────────────────────────────────────────────── */
.app-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ── Sidebar ───────────────────────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 0 16px rgba(200, 56, 3, 0.3);
}

.sidebar-logo h1 {
    font-size: 1.15rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.sidebar-logo .subtitle {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.nav-section {
    margin-bottom: 0.5rem;
}

.nav-section-title {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    padding: 0.5rem 1.5rem;
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
    color: var(--text-accent);
    background: rgba(200, 56, 3, 0.08);
    border-left-color: var(--accent-primary);
}

.nav-item .nav-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.nav-item .nav-badge {
    margin-left: auto;
    background: var(--accent-danger);
    color: white;
    font-size: 0.65rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-weight: 700;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ── Main Content ──────────────────────────────────────────────────────────── */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
}

/* ── Header ────────────────────────────────────────────────────────────────── */
.header {
    height: var(--header-height);
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-title {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.header-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.header-btn:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-active);
}

.header-btn.primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
}

.header-btn.primary:hover {
    opacity: 0.9;
    box-shadow: var(--shadow-glow);
}

.header-refresh-time {
    font-size: 0.8rem;
    color: var(--text-muted, #888);
    white-space: nowrap;
}

/* ── Content Area ──────────────────────────────────────────────────────────── */
.content {
    padding: 2rem;
    max-width: 1400px;
}

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-width: 0;
    transition: all 0.3s;
}

.card:hover {
    border-color: rgba(200, 56, 3, 0.2);
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.card-header h2 {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header .sport-badge {
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-body {
    padding: 1.5rem;
    overflow: hidden;
    min-width: 0;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.15);
}

/* Sport-specific card accents */
.card--ncaa-football { border-top: 3px solid var(--color-ncaa-football); }
.card--ncaa-basketball { border-top: 3px solid var(--color-ncaa-basketball); }
.card--mlb { border-top: 3px solid var(--color-mlb); }
.card--nfl { border-top: 3px solid var(--color-nfl); }
.card--nhl { border-top: 3px solid var(--color-nhl); }
.card--nba { border-top: 3px solid var(--color-nba); }
.card--f1 { border-top: 3px solid var(--color-f1); }
.card--pga { border-top: 3px solid var(--color-pga); }
.card--betting { border-top: 3px solid var(--color-betting); }
.card--fantasy { border-top: 3px solid var(--color-fantasy); }

/* ── Grid Layout ───────────────────────────────────────────────────────────── */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.grid > * {
    min-width: 0;
    overflow: hidden;
}

/* ── Stat Cards (Hero Section) ─────────────────────────────────────────────── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--gradient-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: rgba(200, 56, 3, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.stat-card .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card .stat-detail {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ── Tables ────────────────────────────────────────────────────────────────── */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

tbody td {
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    white-space: nowrap;
}

tbody tr {
    transition: background 0.15s;
}

tbody tr:hover {
    background: rgba(200, 56, 3, 0.04);
}

.table-rank {
    font-weight: 700;
    color: var(--text-accent);
    width: 40px;
}

.table-team {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.table-team .team-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.table-record { color: var(--text-secondary); }
.table-highlight { color: var(--accent-success); font-weight: 700; }
.table-danger { color: var(--accent-danger); }

/* ── Game Cards ────────────────────────────────────────────────────────────── */
.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.2s;
    overflow: hidden;
    min-width: 0;
}

.game-card:hover {
    border-color: rgba(200, 56, 3, 0.2);
}

.game-card.favorite {
    border-left: 3px solid var(--accent-primary);
}

.game-time {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.game-time .live-badge {
    background: var(--accent-danger);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.game-teams {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.game-team {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 0.95rem;
}

.game-team.winner { color: var(--text-primary); }
.game-team.loser { color: var(--text-muted); }

.game-score {
    font-weight: 800;
    font-size: 1.1rem;
    min-width: 30px;
    text-align: right;
}

.game-broadcast {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    overflow: hidden;
    max-height: 3.5rem;
}

.game-broadcast .channel-tag {
    background: rgba(200, 56, 3, 0.15);
    color: var(--text-accent);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ── News Items ────────────────────────────────────────────────────────────── */
.news-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

.news-item .news-title {
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.news-item .news-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    gap: 0.75rem;
}

.news-item.breaking .news-title::before {
    content: "BREAKING";
    background: var(--accent-danger);
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* ── Transfer Portal ───────────────────────────────────────────────────────── */
.portal-entry {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.portal-entry:last-child { border-bottom: none; }

.portal-stars {
    color: var(--accent-warning);
    font-size: 0.8rem;
}

.portal-player {
    font-weight: 700;
    flex: 1;
}

.portal-schools {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.portal-arrow {
    color: var(--accent-primary);
    font-weight: 700;
}

/* ── Betting Section ───────────────────────────────────────────────────────── */
.odds-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.odds-value {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-weight: 700;
    min-width: 60px;
}

.odds-value.positive { color: var(--accent-success); }
.odds-value.negative { color: var(--text-primary); }

.odds-movement {
    font-size: 0.75rem;
}

.odds-movement.up { color: var(--accent-success); }
.odds-movement.down { color: var(--accent-danger); }

.confidence-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.confidence-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--gradient-accent);
    transition: width 0.5s ease;
}

/* ── Weather Badge ─────────────────────────────────────────────────────────── */
.weather-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.weather-badge.favorable {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-success);
}

.weather-badge.neutral {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-warning);
}

.weather-badge.unfavorable {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-danger);
}

/* ── Fantasy Section ───────────────────────────────────────────────────────── */
.lineup-grid {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 0.5rem;
    align-items: center;
}

.lineup-position {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-accent);
    text-transform: uppercase;
}

.lineup-player {
    font-weight: 600;
}

.lineup-stats {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.action-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.action-tag.buy { background: rgba(16, 185, 129, 0.15); color: var(--accent-success); }
.action-tag.sell { background: rgba(239, 68, 68, 0.15); color: var(--accent-danger); }
.action-tag.hold { background: rgba(245, 158, 11, 0.15); color: var(--accent-warning); }
.action-tag.add { background: rgba(200, 56, 3, 0.15); color: var(--accent-primary); }

/* ── Parlay Builder ────────────────────────────────────────────────────────── */
.parlay-card {
    background: var(--gradient-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.parlay-legs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.parlay-leg {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.parlay-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    font-weight: 700;
}

.parlay-payout {
    color: var(--accent-success);
    font-size: 1.1rem;
}

/* ── Tabs ──────────────────────────────────────────────────────────────────── */
.tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.tab {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab:hover { color: var(--text-secondary); }

.tab.active {
    color: var(--text-accent);
    border-bottom-color: var(--accent-primary);
}
/* ── Section Headers ───────────────────────────────────────────────────────── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
    margin: 2rem 0;
}
/* ── Scrollbar ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}

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

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .content {
        padding: 1rem;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header {
        padding: 0 1rem;
    }
}

/* ── Animations ────────────────────────────────────────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

.card {
    animation: fadeIn 0.4s ease-out forwards;
}

.card:nth-child(2) { animation-delay: 0.05s; }
.card:nth-child(3) { animation-delay: 0.1s; }
.card:nth-child(4) { animation-delay: 0.15s; }
.card:nth-child(5) { animation-delay: 0.2s; }
.card:nth-child(6) { animation-delay: 0.25s; }

/* ── Loading Skeleton ──────────────────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg,
        var(--bg-card) 25%,
        rgba(255, 255, 255, 0.05) 50%,
        var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text { height: 1rem; margin-bottom: 0.5rem; }
.skeleton-text:last-child { width: 60%; }
.skeleton-card { height: 200px; }

/* ── Tooltip ───────────────────────────────────────────────────────────────── */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.4rem 0.7rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

[data-tooltip]:hover::after {
    opacity: 1;
}

/* ── Print Styles ──────────────────────────────────────────────────────────── */
@media print {
    .sidebar, .header-right { display: none; }
    .main-content { margin-left: 0; }
    body { background: white; color: black; }
    .card { border: 1px solid #ddd; break-inside: avoid; }
}
