/* noboxAI Design System - Zoom Dashboard */
/* Based on authentic design tokens from Penpot */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,300;12..96,400;12..96,500;12..96,600;12..96,700&display=swap');

:root {
    /* ============================================
       COLORS - noboxAI Brand Palette (from Penpot)
       Homepage Mockup - LIGHT MODE DEFAULT
       ============================================ */

    /* Core Palette */
    --color-white: #ffffff;
    --color-black: #1c1c1c;

    /* Light Theme Backgrounds (Penpot: Homepage Mockup) */
    --color-bg-primary: #f5f5f5;      /* Services Section BG */
    --color-bg-secondary: #ffffff;    /* Nav/Cards background */
    --color-bg-tertiary: #fafafa;     /* Subtle elevation */
    --color-bg-elevated: #ffffff;

    /* Surface Colors (Light Mode) */
    --color-surface: #ffffff;         /* Card backgrounds */
    --color-surface-hover: #f8f8f8;   /* Hover state */
    --color-surface-active: #f0f0f0;  /* Active state */

    /* Border Colors (Light Mode) */
    --color-border: #e0e0e0;          /* Light gray borders */
    --color-border-subtle: #eeeeee;   /* Subtle borders */
    --color-border-focus: #03a9f4;    /* Brand blue focus */

    /* Text Colors (Light Mode - dark text on light bg) */
    --color-text-primary: #1c1c1c;    /* Near black */
    --color-text-secondary: #4c5b61;  /* Medium gray */
    --color-text-muted: #6b7280;      /* Muted gray */
    --color-text-subtle: #9ca3af;     /* Light gray */

    /* Brand Accent Colors (Penpot: Color Palette & Homepage) */
    --color-blue: #03a9f4;            /* Primary brand blue */
    --color-blue-light: rgba(3, 169, 244, 0.1);
    --color-blue-dark: #025074;       /* Dark blue (gradient start) */
    --color-blue-darker: #013e5b;     /* Darker blue */

    --color-orange: #ffba49;          /* Primary CTA (Hero Primary Button) */
    --color-orange-light: rgba(255, 186, 73, 0.15);
    --color-orange-dark: #e5a73f;     /* Hover state */

    --color-green: #8bc34a;           /* Success green */
    --color-green-light: rgba(139, 195, 74, 0.15);

    --color-red: #eb5e55;             /* Alert red */
    --color-red-light: rgba(235, 94, 85, 0.1);

    /* Semantic Colors */
    --color-success: var(--color-green);
    --color-warning: var(--color-orange);
    --color-error: var(--color-red);
    --color-info: var(--color-blue);

    /* Sidebar (keeps dark for contrast - like Footer in Penpot) */
    --color-sidebar-bg: #1c1c1c;
    --color-sidebar-text: #ffffff;
    --color-sidebar-muted: #94a3b8;

    /* ============================================
       TYPOGRAPHY - Bricolage Grotesque
       ============================================ */

    --font-primary: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

    /* Font Sizes (from Penpot) */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.8125rem;    /* 13px */
    --text-base: 1rem;       /* 16px */
    --text-md: 1.0625rem;    /* 17px - noboxAI body */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.4375rem;    /* 23px - H6 */
    --text-2xl: 1.5rem;      /* 24px - H5 */
    --text-3xl: 2.125rem;    /* 34px - H3 */
    --text-4xl: 2.5rem;      /* 40px - H2 */
    --text-5xl: 4.0625rem;   /* 65px - H1 */

    /* Font Weights */
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* Line Heights (from Penpot) */
    --leading-tight: 1.0;
    --leading-snug: 1.2;
    --leading-normal: 1.3;
    --leading-relaxed: 1.5;
    --leading-loose: 1.7;

    /* Letter Spacing (from Penpot) */
    --tracking-tight: -0.015em;
    --tracking-normal: -0.01em;
    --tracking-wide: 0.05em;

    /* ============================================
       SPACING - 8px Grid System
       ============================================ */

    --space-0: 0;
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */

    /* Component Spacing */
    --padding-container: var(--space-4) calc(72px);
    --padding-main: 0 30px;

    /* ============================================
       BORDERS & RADIUS
       ============================================ */

    --radius-none: 0;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;           /* Penpot Service Card radius */
    --radius-2xl: 20px;
    --radius-pill: 28px;         /* Penpot Hero Button radius */
    --radius-full: 9999px;

    /* ============================================
       SHADOWS & EFFECTS
       ============================================ */

    /* Shadows (Penpot Light Mode - subtle shadows) */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 2px 10px rgba(0, 0, 0, 0.08);   /* Nav Background shadow */
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.1);   /* Service Card shadow */
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-button: 0 4px 12px rgba(0, 0, 0, 0.25); /* Hero Button shadow */

    --shadow-glow-blue: 0 0 20px rgba(3, 169, 244, 0.3);
    --shadow-glow-orange: 0 0 20px rgba(255, 186, 73, 0.4);

    /* ============================================
       TRANSITIONS
       ============================================ */

    --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

    --duration-fast: 150ms;
    --duration-base: 250ms;
    --duration-slow: 400ms;

    --transition-colors: color var(--duration-fast) var(--ease-default),
                         background-color var(--duration-fast) var(--ease-default),
                         border-color var(--duration-fast) var(--ease-default);
    --transition-transform: transform var(--duration-base) var(--ease-out);
    --transition-all: all var(--duration-base) var(--ease-default);
}

/* ============================================
   DARK MODE - noboxAI Dark Theme (from Penpot Tokens - Dark)
   Activated via [data-theme="dark"] or prefers-color-scheme
   ============================================ */

[data-theme="dark"],
.dark-mode {
    /* Dark Theme Backgrounds (Penpot: Tokens - Dark) */
    --color-bg-primary: #0f172a;      /* slate-900 - deep navy */
    --color-bg-secondary: #1e293b;    /* slate-800 */
    --color-bg-tertiary: #334155;     /* slate-700 */
    --color-bg-elevated: #1e293b;

    /* Surface Colors (Dark Mode) */
    --color-surface: #1e293b;         /* slate-800 */
    --color-surface-hover: #334155;   /* slate-700 */
    --color-surface-active: #475569;  /* slate-600 */

    /* Border Colors (Dark Mode) */
    --color-border: #475569;          /* slate-600 */
    --color-border-subtle: #334155;   /* slate-700 */

    /* Text Colors (Dark Mode - light text on dark bg) */
    --color-text-primary: #f8fafc;    /* slate-50 */
    --color-text-secondary: #e2e8f0;  /* slate-200 */
    --color-text-muted: #94a3b8;      /* slate-400 */
    --color-text-subtle: #64748b;     /* slate-500 */

    /* Accent adjustments for dark mode */
    --color-blue: #38bdf8;            /* sky-400 - brighter for dark bg */
    --color-blue-light: rgba(56, 189, 248, 0.15);
    --color-orange: #fbbf24;          /* amber-400 */
    --color-orange-light: rgba(251, 191, 36, 0.15);
    --color-green-light: rgba(139, 195, 74, 0.2);
    --color-red-light: rgba(235, 94, 85, 0.15);

    /* Shadows (stronger for dark mode visibility) */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-button: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-glow-blue: 0 0 20px rgba(56, 189, 248, 0.4);
    --shadow-glow-orange: 0 0 20px rgba(251, 191, 36, 0.4);

    /* Sidebar stays dark (same as light mode) */
    --color-sidebar-bg: #0f172a;
    --color-sidebar-text: #f8fafc;
    --color-sidebar-muted: #94a3b8;
}

/* Auto dark mode based on system preference */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        /* Dark Theme Backgrounds */
        --color-bg-primary: #0f172a;
        --color-bg-secondary: #1e293b;
        --color-bg-tertiary: #334155;
        --color-bg-elevated: #1e293b;

        /* Surface Colors */
        --color-surface: #1e293b;
        --color-surface-hover: #334155;
        --color-surface-active: #475569;

        /* Border Colors */
        --color-border: #475569;
        --color-border-subtle: #334155;

        /* Text Colors */
        --color-text-primary: #f8fafc;
        --color-text-secondary: #e2e8f0;
        --color-text-muted: #94a3b8;
        --color-text-subtle: #64748b;

        /* Accent adjustments */
        --color-blue: #38bdf8;
        --color-blue-light: rgba(56, 189, 248, 0.15);
        --color-orange: #fbbf24;
        --color-orange-light: rgba(251, 191, 36, 0.15);
        --color-green-light: rgba(139, 195, 74, 0.2);
        --color-red-light: rgba(235, 94, 85, 0.15);

        /* Shadows */
        --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
        --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
        --shadow-button: 0 4px 12px rgba(0, 0, 0, 0.4);
        --shadow-glow-blue: 0 0 20px rgba(56, 189, 248, 0.4);
        --shadow-glow-orange: 0 0 20px rgba(251, 191, 36, 0.4);

        /* Sidebar */
        --color-sidebar-bg: #0f172a;
        --color-sidebar-text: #f8fafc;
        --color-sidebar-muted: #94a3b8;
    }
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-md);
    font-weight: var(--font-light);
    line-height: var(--leading-loose);
    letter-spacing: var(--tracking-normal);
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    min-height: 100vh;
}

/* ============================================
   APP LAYOUT
   ============================================ */

.app {
    display: flex;
    min-height: 100vh;
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
    width: 260px;
    background: var(--color-sidebar-bg);
    border-right: none;
    display: flex;
    flex-direction: column;
    padding: var(--space-6);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-10);
    padding: var(--space-2) 0;
}

.logo-mark {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--color-blue-brand) 0%, var(--color-blue-darker) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow-blue);
}

.logo-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-size: var(--text-xl);
    font-weight: var(--font-medium);
    color: var(--color-sidebar-text);
    letter-spacing: var(--tracking-tight);
}

.logo-accent {
    color: var(--color-blue);
}

/* Navigation */
.nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-4);
    border-radius: var(--radius-lg);
    color: var(--color-sidebar-muted);
    text-decoration: none;
    font-weight: var(--font-medium);
    font-size: var(--text-base);
    transition: var(--transition-all);
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--color-blue);
    border-radius: var(--radius-full);
    transition: height var(--duration-base) var(--ease-out);
}

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

.nav-item.active {
    background: rgba(3, 169, 244, 0.2);
    color: var(--color-blue);
}

.nav-item.active::before {
    height: 24px;
}

.nav-item.active .nav-icon {
    color: var(--color-blue);
}

.nav-icon {
    font-size: var(--text-lg);
    width: 24px;
    text-align: center;
    opacity: 0.8;
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sync-status {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: var(--color-sidebar-muted);
}

.sync-dot {
    width: 8px;
    height: 8px;
    background: var(--color-green);
    border-radius: var(--radius-full);
    box-shadow: 0 0 8px var(--color-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-8);
    background: var(--color-bg-secondary);
    border-bottom: none;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left {
    display: flex;
    align-items: baseline;
    gap: var(--space-4);
}

.page-title {
    font-size: var(--text-3xl);
    font-weight: var(--font-medium);
    letter-spacing: var(--tracking-tight);
    color: var(--color-text-primary);
}

.page-count {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-weight: var(--font-regular);
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* Search Box */
.search-box {
    position: relative;
    width: 360px;
}

.search-icon {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: var(--text-base);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: var(--space-3) var(--space-4) var(--space-3) 44px;
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--font-light);
    transition: var(--transition-all);
}

.search-box input::placeholder {
    color: var(--color-text-muted);
}

.search-box input:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px var(--color-blue-light);
}

/* Filter Select */
.filter-select {
    padding: var(--space-3) var(--space-4);
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--font-light);
    cursor: pointer;
    min-width: 180px;
    transition: var(--transition-all);
}

.filter-select:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px var(--color-blue-light);
}

/* Theme Toggle */
.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-all);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--color-blue);
    border-color: var(--color-blue);
}

.theme-toggle:hover .theme-icon {
    color: var(--color-white);
}

.theme-icon {
    font-size: 1.25rem;
    transition: var(--transition-all);
    position: absolute;
}

.theme-icon.light {
    color: var(--color-orange);
    opacity: 1;
    transform: rotate(0deg);
}

.theme-icon.dark {
    color: var(--color-blue);
    opacity: 0;
    transform: rotate(-90deg);
}

[data-theme="dark"] .theme-icon.light {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="dark"] .theme-icon.dark {
    opacity: 1;
    transform: rotate(0deg);
}

/* ============================================
   CONTENT AREA
   ============================================ */

.content {
    padding: var(--space-8);
    flex: 1;
}

.view {
    display: none;
}

.view.active {
    display: block;
    animation: fadeIn 400ms var(--ease-out);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   VIEW TOGGLE & EXPAND/COLLAPSE BUTTONS
   ============================================ */

.view-toggle {
    display: flex;
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.view-toggle-btn {
    padding: var(--space-2) var(--space-3);
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: var(--text-lg);
    transition: var(--transition-all);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.view-toggle-btn:hover {
    color: var(--color-text-primary);
    background: var(--color-surface-hover);
}

.view-toggle-btn.active {
    background: var(--color-blue);
    color: var(--color-white);
}

.expand-collapse-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: var(--transition-all);
}

.expand-collapse-btn:hover {
    border-color: var(--color-blue);
    color: var(--color-blue);
}

.expand-icon {
    font-size: var(--text-base);
}

/* Hide view toggle and expand button when not on meetings view */
.view-toggle.hidden,
.expand-collapse-btn.hidden {
    display: none;
}

/* ============================================
   COLLAPSIBLE MONTH SECTIONS (ACCORDION)
   ============================================ */

/* Override grid layout when showing month sections or detail table */
.cards-grid:has(.month-section),
.cards-grid:has(.detail-table-container) {
    display: block;
}

.month-section {
    margin-bottom: var(--space-6);
    width: 100%;
}

.month-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-all);
    user-select: none;
}

.month-header:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-blue);
}

.month-header:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--color-blue-light);
}

.month-header-left {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.month-chevron {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    transition: transform var(--duration-base) var(--ease-default);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
}

.month-section.collapsed .month-chevron {
    transform: rotate(-90deg);
}

.month-title {
    font-size: var(--text-xl);
    font-weight: var(--font-medium);
    color: var(--color-text-primary);
    letter-spacing: var(--tracking-tight);
}

.month-count {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    padding: var(--space-1) var(--space-3);
    background: var(--color-bg-primary);
    border-radius: var(--radius-pill);
}

.month-content {
    overflow: hidden;
    transition: max-height var(--duration-base) var(--ease-default),
                opacity var(--duration-fast) var(--ease-default),
                padding var(--duration-base) var(--ease-default);
    max-height: 5000px;
    opacity: 1;
    padding-top: var(--space-5);
}

.month-section.collapsed .month-content {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
}

/* ============================================
   MEETING CARDS GRID
   ============================================ */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: var(--space-6);
}

/* ============================================
   DETAIL/LIST VIEW
   ============================================ */

.detail-view {
    display: none;
}

.detail-view.active {
    display: block;
}

.detail-table-container {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow-x: auto;
    width: 100%;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
    table-layout: fixed;
}

.detail-table th {
    position: sticky;
    top: 0;
    background: var(--color-bg-tertiary);
    padding: var(--space-3) var(--space-3);
    text-align: left;
    font-weight: var(--font-semibold);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--color-text-muted);
    border-bottom: 2px solid var(--color-border);
    cursor: pointer;
    user-select: none;
    transition: var(--transition-colors);
    white-space: nowrap;
}

.detail-table th:hover {
    color: var(--color-text-primary);
    background: var(--color-surface-hover);
}

.detail-table th.sorted {
    color: var(--color-blue);
    background: var(--color-blue-light);
}

.detail-table th.no-sort {
    cursor: default;
}

.detail-table th.no-sort:hover {
    background: var(--color-bg-tertiary);
    color: var(--color-text-muted);
}

.detail-table th .sort-icon {
    margin-left: var(--space-1);
    opacity: 0.4;
    font-size: 9px;
    display: inline-block;
    transition: transform var(--duration-fast) var(--ease-default);
}

.detail-table th.sorted .sort-icon {
    opacity: 1;
}

.detail-table th.sorted.asc .sort-icon {
    transform: rotate(180deg);
}

/* Column widths */
.detail-table th.col-date { width: 100px; }
.detail-table th.col-topic { width: auto; min-width: 200px; }
.detail-table th.col-domains { width: 150px; }
.detail-table th.col-attendees { width: 180px; }
.detail-table th.col-participants { width: 70px; text-align: center; }
.detail-table th.col-duration { width: 70px; text-align: center; }
.detail-table th.col-actions { width: 60px; text-align: center; }
.detail-table th.col-topics { width: 60px; text-align: center; }
.detail-table th.col-assets { width: 60px; text-align: center; }
.detail-table th.col-status { width: 80px; text-align: center; }
.detail-table th.col-buttons { width: 120px; }

.detail-table td {
    padding: var(--space-3) var(--space-3);
    border-bottom: 1px solid var(--color-border-subtle);
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-table tbody tr {
    cursor: pointer;
    transition: var(--transition-colors);
}

.detail-table tbody tr:hover {
    background: var(--color-surface-hover);
}

.detail-table tbody tr:nth-child(even) {
    background: var(--color-bg-tertiary);
}

.detail-table tbody tr:nth-child(even):hover {
    background: var(--color-surface-hover);
}

.detail-table tbody tr:last-child td {
    border-bottom: none;
}

/* Detail view cells */
.detail-date {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.detail-date-day {
    display: block;
    font-weight: var(--font-medium);
    color: var(--color-text-primary);
}

.detail-date-time {
    display: block;
    font-size: 10px;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.detail-topic {
    font-weight: var(--font-medium);
    color: var(--color-text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-topic:hover {
    color: var(--color-blue);
}

.detail-domains {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.detail-domains .domain-tag {
    font-size: 10px;
    padding: 2px 6px;
    background: var(--color-blue-light);
    border: none;
    color: var(--color-blue);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-attendees {
    font-size: 11px;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

.detail-attendees-list {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.detail-attendees-more {
    font-size: 10px;
    color: var(--color-text-muted);
    font-style: italic;
}

.detail-stat {
    text-align: center;
    font-weight: var(--font-bold);
    font-size: var(--text-base);
}

.detail-stat.zero {
    opacity: 0.25;
}

.detail-stat.action { color: var(--color-orange); }
.detail-stat.discussion { color: var(--color-green); }
.detail-stat.recording { color: var(--color-blue); }

.detail-duration {
    font-family: var(--font-mono);
    font-size: 11px;
    text-align: center;
    color: var(--color-text-secondary);
}

.detail-participants {
    font-weight: var(--font-medium);
    text-align: center;
    color: var(--color-text-primary);
}

.detail-status {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
}

.detail-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: var(--radius-md);
    font-size: 13px;
    transition: var(--transition-all);
}

.detail-badge.has {
    background: var(--color-green-light);
}

.detail-badge.has:hover {
    transform: scale(1.1);
}

.detail-badge.none {
    background: var(--color-bg-primary);
    opacity: 0.2;
}

.detail-actions {
    display: flex;
    gap: var(--space-2);
    justify-content: flex-end;
}

.detail-action-btn {
    padding: var(--space-2) var(--space-3);
    background: var(--color-orange);
    border: none;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: var(--font-semibold);
    color: var(--color-black);
    cursor: pointer;
    transition: var(--transition-all);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    white-space: nowrap;
}

.detail-action-btn:hover {
    background: var(--color-orange-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.detail-action-btn.secondary {
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
}

.detail-action-btn.secondary:hover {
    border-color: var(--color-blue);
    color: var(--color-blue);
    background: var(--color-blue-light);
}

.detail-action-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
}

[data-theme="dark"] .detail-action-btn {
    background: var(--color-blue);
    color: var(--color-white);
}

[data-theme="dark"] .detail-action-btn:hover {
    background: #0ea5e9;
}

.meeting-card {
    background: var(--color-surface);
    border: none;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-all);
    cursor: pointer;
    box-shadow: var(--shadow-lg);
}

.meeting-card:hover {
    box-shadow: var(--shadow-xl), var(--shadow-glow-blue);
    transform: translateY(-6px);
}

.card-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--color-border-subtle);
    background: linear-gradient(135deg, var(--color-blue-dark) 0%, var(--color-blue) 100%);
}

.card-date {
    font-size: var(--text-xs);
    font-family: var(--font-mono);
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-2);
}

.card-title {
    font-size: var(--text-lg);
    font-weight: var(--font-medium);
    color: var(--color-white);
    line-height: var(--leading-snug);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-domains {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.domain-tag {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    font-family: var(--font-mono);
    font-weight: var(--font-medium);
    color: var(--color-white);
}

.card-body {
    padding: var(--space-6);
}

.card-attendees {
    margin-bottom: var(--space-5);
}

.attendees-label {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-3);
}

.attendees-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.attendee-chip {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    background: var(--color-bg-primary);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--font-regular);
    color: var(--color-text-secondary);
}

.attendee-chip.more {
    color: var(--color-text-muted);
    font-style: italic;
}

.card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}

.stat {
    text-align: center;
    padding: var(--space-4);
    background: var(--color-bg-primary);
    border-radius: var(--radius-lg);
    transition: var(--transition-all);
}

.stat:hover {
    background: var(--color-border-subtle);
}

.stat-value {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--color-text-primary);
    line-height: 1;
}

.stat-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-top: var(--space-1);
}

.stat.action .stat-value { color: #e5a73f; }
.stat.discussion .stat-value { color: #6b9b2f; }
.stat.recording .stat-value { color: var(--color-blue); }

.card-footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--color-border-subtle);
    display: flex;
    gap: var(--space-3);
    background: var(--color-bg-tertiary);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--color-orange);
    border: none;
    border-radius: var(--radius-pill);
    color: var(--color-black);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-decoration: none;
    transition: var(--transition-all);
    box-shadow: var(--shadow-sm);
}

.card-link:hover {
    background: var(--color-orange-dark);
    color: var(--color-black);
    box-shadow: var(--shadow-button);
    transform: translateY(-2px);
}

.card-link.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* ============================================
   INSIGHTS LIST
   ============================================ */

.insights-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* Insight Meeting Groups */
.insight-group {
    margin-bottom: var(--space-6);
}

.insight-group-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: var(--space-5) var(--space-6);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-all);
    user-select: none;
    gap: var(--space-4);
}

.insight-group-header:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-blue);
}

.insight-group-header:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--color-blue-light);
}

.insight-group-left {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    flex: 1;
    min-width: 0;
}

.insight-group-chevron {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    transition: transform var(--duration-base) var(--ease-default);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.insight-group.collapsed .insight-group-chevron {
    transform: rotate(-90deg);
}

.insight-group-info {
    flex: 1;
    min-width: 0;
}

.insight-group-title-row {
    display: flex;
    align-items: baseline;
    gap: var(--space-4);
    margin-bottom: var(--space-2);
}

.insight-group-title {
    font-size: var(--text-xl);
    font-weight: var(--font-medium);
    color: var(--color-blue);
    letter-spacing: var(--tracking-tight);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.insight-group-title:hover {
    text-decoration: underline;
}

.insight-group-date {
    font-size: var(--text-sm);
    font-family: var(--font-mono);
    color: var(--color-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.insight-group-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.insight-group-attendees {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.insight-group-attendees .attendee-chip {
    font-size: var(--text-xs);
    padding: 2px var(--space-2);
}

.insight-group-summary {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 400px;
}

.insight-group-count {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    padding: var(--space-1) var(--space-3);
    background: var(--color-bg-primary);
    border-radius: var(--radius-pill);
    white-space: nowrap;
    flex-shrink: 0;
}

.insight-group-content {
    overflow: hidden;
    transition: max-height var(--duration-base) var(--ease-default),
                opacity var(--duration-fast) var(--ease-default),
                padding var(--duration-base) var(--ease-default);
    max-height: 5000px;
    opacity: 1;
    padding-top: var(--space-4);
}

.insight-group.collapsed .insight-group-content {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
}

.insight-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-5);
    padding: var(--space-6);
    background: var(--color-surface);
    border: none;
    border-radius: var(--radius-xl);
    transition: var(--transition-all);
    box-shadow: var(--shadow-lg);
}

.insight-item:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.insight-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    flex-shrink: 0;
}

.insight-icon.action {
    background: var(--color-orange-light);
    color: var(--color-orange);
}

.insight-icon.discussion {
    background: var(--color-green-light);
    color: var(--color-green);
}

.insight-content {
    flex: 1;
    min-width: 0;
}

.insight-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-2);
}

.insight-type {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
}

.insight-type.action {
    background: var(--color-orange-light);
    color: var(--color-orange);
}

.insight-type.discussion {
    background: var(--color-green-light);
    color: var(--color-green);
}

.insight-assignee {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-text-primary);
}

.insight-text {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-3);
}

.insight-meta {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.insight-meeting {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.insight-domains {
    display: flex;
    gap: var(--space-2);
}

.insight-domains .domain-tag {
    background: var(--color-blue-light);
    border: 1px solid transparent;
    color: var(--color-blue);
}

/* ============================================
   DOMAINS GRID
   ============================================ */

.domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-6);
}

.domain-card {
    background: var(--color-surface);
    border: none;
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: var(--transition-all);
    cursor: pointer;
    box-shadow: var(--shadow-lg);
}

.domain-card:hover {
    box-shadow: var(--shadow-xl), var(--shadow-glow-blue);
    transform: translateY(-4px);
}

.domain-name {
    font-size: var(--text-xl);
    font-weight: var(--font-medium);
    font-family: var(--font-mono);
    color: var(--color-blue);
    margin-bottom: var(--space-5);
}

.domain-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}

.domain-stat {
    text-align: center;
    padding: var(--space-4);
    background: var(--color-bg-primary);
    border-radius: var(--radius-lg);
}

.domain-stat-value {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--color-text-primary);
}

.domain-stat-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-top: var(--space-1);
}

/* ============================================
   MODAL
   ============================================ */

.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
}

.modal.active {
    display: flex;
    animation: modalFadeIn 300ms var(--ease-out);
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    background: var(--color-surface);
    border: none;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: modalSlideIn 400ms var(--ease-out);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(24px) scale(0.98);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: var(--space-5);
    right: var(--space-5);
    width: 36px;
    height: 36px;
    background: var(--color-bg-primary);
    border: none;
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-base);
    transition: var(--transition-all);
    z-index: 10;
}

.modal-close:hover {
    background: var(--color-red);
    color: var(--color-white);
}

.modal-body {
    padding: var(--space-8);
    overflow-y: auto;
    max-height: 90vh;
}

/* Modal Header */
.modal-header {
    margin-bottom: var(--space-8);
    padding-right: 48px;
}

.modal-date {
    font-size: var(--text-sm);
    font-family: var(--font-mono);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-2);
}

.modal-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-medium);
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-snug);
    margin-bottom: var(--space-4);
}

.modal-domains {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

/* Modal Sections */
.modal-section {
    margin-bottom: var(--space-8);
}

.modal-section-title {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--color-text-muted);
    margin-bottom: var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.modal-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--color-border) 0%, transparent 100%);
}

/* Modal Attendees */
.modal-attendees {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.modal-attendee {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--color-bg-primary);
    border-radius: var(--radius-lg);
    transition: var(--transition-all);
}

.modal-attendee:hover {
    background: var(--color-border-subtle);
}

.attendee-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--color-blue-brand) 0%, var(--color-blue-darker) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.attendee-info {
    display: flex;
    flex-direction: column;
}

.attendee-name {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-text-primary);
}

.attendee-email {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    font-family: var(--font-mono);
}

/* Modal Insights */
.modal-insights {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.modal-insight {
    padding: var(--space-5);
    background: var(--color-bg-primary);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-border);
    transition: var(--transition-all);
}

.modal-insight:hover {
    background: var(--color-border-subtle);
}

.modal-insight.action {
    border-left-color: var(--color-orange);
}

.modal-insight.discussion {
    border-left-color: var(--color-green);
}

.modal-insight-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-2);
}

.modal-insight-text {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-text-secondary);
}

/* Modal Links */
.modal-links {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.modal-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-6);
    background: var(--color-orange);
    border: none;
    border-radius: var(--radius-pill);
    color: var(--color-black);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    transition: var(--transition-all);
    box-shadow: var(--shadow-button);
}

.modal-link:hover {
    background: var(--color-orange-dark);
    color: var(--color-black);
    box-shadow: var(--shadow-lg), var(--shadow-glow-orange);
    transform: translateY(-2px);
}

.modal-link.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Recordings List */
.modal-recordings {
    margin-top: var(--space-6);
    padding-top: var(--space-5);
    border-top: 1px solid var(--color-border-subtle);
}

.recordings-label {
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-3);
}

.recordings-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.recording-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: var(--transition-all);
}

.recording-item:hover {
    border-color: var(--color-blue);
    color: var(--color-blue);
    background: var(--color-blue-light);
}

.recording-item.disabled {
    opacity: 0.3;
    pointer-events: none;
}

.recording-type {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: var(--font-bold);
    padding: 2px 8px;
    background: var(--color-blue-brand);
    color: var(--color-white);
    border-radius: var(--radius-pill);
}

.recording-icon {
    font-size: 14px;
}

.recording-label {
    font-weight: var(--font-medium);
}

.recording-size {
    color: var(--color-text-muted);
}

.recording-action {
    font-size: 10px;
    font-weight: var(--font-bold);
    padding: 2px 6px;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    text-transform: uppercase;
}

/* Transcript Content */
.transcript-content {
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    font-size: var(--text-sm);
    font-family: var(--font-mono);
    line-height: var(--leading-loose);
    color: var(--color-text-secondary);
    white-space: pre-wrap;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-back-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-text-primary);
    cursor: pointer;
    transition: var(--transition-all);
}

.modal-back-btn:hover {
    background: var(--color-blue);
    border-color: var(--color-blue);
    color: var(--color-white);
}

/* ============================================
   EMPTY & LOADING STATES
   ============================================ */

.empty-state {
    text-align: center;
    padding: var(--space-16);
    color: var(--color-text-muted);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: var(--space-5);
    opacity: 0.3;
}

.empty-text {
    font-size: var(--text-lg);
    font-weight: var(--font-light);
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-16);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border-subtle);
    border-top-color: var(--color-orange);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1280px) {
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }

    .main {
        margin-left: 220px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .search-box {
        width: 280px;
    }
}

@media (max-width: 1400px) {
    /* Hide duration column on narrower screens */
    .detail-table th.col-duration,
    .detail-table td:nth-child(6) {
        display: none;
    }
}

@media (max-width: 1200px) {
    /* Hide attendees column */
    .detail-table th.col-attendees,
    .detail-table td:nth-child(4) {
        display: none;
    }
}

@media (max-width: 1024px) {
    /* Detail table responsive */
    .detail-table-container {
        overflow-x: auto;
    }

    .detail-table {
        min-width: 800px;
        table-layout: auto;
    }

    /* Hide participants and domains */
    .detail-table th.col-participants,
    .detail-table td:nth-child(5),
    .detail-table th.col-domains,
    .detail-table td:nth-child(3) {
        display: none;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--duration-base) var(--ease-default);
    }

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

    .main {
        margin-left: 0;
    }

    .header {
        flex-direction: column;
        gap: var(--space-4);
        align-items: stretch;
        padding: var(--space-4);
    }

    .header-right {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .view-toggle {
        order: 1;
    }

    .expand-collapse-btn {
        order: 2;
    }

    .search-box {
        width: 100%;
        order: 3;
    }

    .filter-group {
        width: 100%;
        order: 4;
    }

    .filter-select {
        width: 100%;
    }

    .theme-toggle {
        order: 0;
        margin-left: auto;
    }

    .content {
        padding: var(--space-4);
    }

    .modal {
        padding: var(--space-4);
    }

    .modal-body {
        padding: var(--space-5);
    }

    .modal-title {
        font-size: var(--text-2xl);
    }

    /* Month sections on mobile */
    .month-header {
        padding: var(--space-3) var(--space-4);
    }

    .month-title {
        font-size: var(--text-lg);
    }

    /* Cards grid single column on mobile */
    .cards-grid {
        grid-template-columns: 1fr;
    }

    /* Detail table - hide more columns */
    .detail-table th:nth-child(3),
    .detail-table td:nth-child(3),
    .detail-table th:nth-child(5),
    .detail-table td:nth-child(5),
    .detail-table th:nth-child(6),
    .detail-table td:nth-child(6) {
        display: none;
    }

    .detail-topic {
        max-width: 150px;
    }

    .expand-collapse-btn .expand-text {
        display: none;
    }
}

/* ============================================
   DARK MODE COMPONENT OVERRIDES
   ============================================ */

[data-theme="dark"] .stat.action .stat-value,
.dark-mode .stat.action .stat-value {
    color: var(--color-orange);
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

[data-theme="dark"] .stat.discussion .stat-value,
.dark-mode .stat.discussion .stat-value {
    color: var(--color-green);
    text-shadow: 0 0 20px rgba(139, 195, 74, 0.3);
}

[data-theme="dark"] .stat.recording .stat-value,
.dark-mode .stat.recording .stat-value {
    color: var(--color-blue);
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

[data-theme="dark"] .card-link,
.dark-mode .card-link {
    background: var(--color-blue);
    color: var(--color-white);
}

[data-theme="dark"] .card-link:hover,
.dark-mode .card-link:hover {
    background: #0ea5e9;
    color: var(--color-white);
}

[data-theme="dark"] .modal-link,
.dark-mode .modal-link {
    background: var(--color-blue);
    color: var(--color-white);
}

[data-theme="dark"] .modal-link:hover,
.dark-mode .modal-link:hover {
    background: #0ea5e9;
    color: var(--color-white);
}

[data-theme="dark"] .loading-spinner,
.dark-mode .loading-spinner {
    border-color: var(--color-border);
    border-top-color: var(--color-blue);
}

/* Auto dark mode component overrides */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .stat.action .stat-value {
        color: var(--color-orange);
        text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
    }

    :root:not([data-theme="light"]) .stat.discussion .stat-value {
        color: var(--color-green);
        text-shadow: 0 0 20px rgba(139, 195, 74, 0.3);
    }

    :root:not([data-theme="light"]) .stat.recording .stat-value {
        color: var(--color-blue);
        text-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
    }

    :root:not([data-theme="light"]) .card-link {
        background: var(--color-blue);
        color: var(--color-white);
    }

    :root:not([data-theme="light"]) .card-link:hover {
        background: #0ea5e9;
        color: var(--color-white);
    }

    :root:not([data-theme="light"]) .modal-link {
        background: var(--color-blue);
        color: var(--color-white);
    }

    :root:not([data-theme="light"]) .modal-link:hover {
        background: #0ea5e9;
        color: var(--color-white);
    }

    :root:not([data-theme="light"]) .loading-spinner {
        border-color: var(--color-border);
        border-top-color: var(--color-blue);
    }

    :root:not([data-theme="light"]) .theme-icon.light {
        opacity: 0;
        transform: rotate(90deg);
    }

    :root:not([data-theme="light"]) .theme-icon.dark {
        opacity: 1;
        transform: rotate(0deg);
    }
}
