/* VCSA Atlas - Modern Sidebar Navigation Design */

html {
    overflow-y: scroll;
}

@font-face {
    font-family: 'Manifold Extended';
    src: url('/static/fonts/Fontspring-DEMO-manifoldextendedcf-regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    /* Color Palette - Futuristic Dark */
    --bg-primary: #050810;
    --bg-secondary: #0A0F1A;
    --bg-tertiary: #0F1520;
    --bg-hover: #151B28;
    
    /* Sidebar */
    --sidebar-bg: #08090E;
    --sidebar-width: 240px;
    --sidebar-collapsed-width: 80px;
    
    /* Accent Colors - Pure White */
    --accent-primary: #FFFFFF;
    --accent-primary-glow: rgba(255, 255, 255, 0.4);
    --accent-secondary: #FFFFFF;
    --accent-success: #00FF88;
    --accent-warning: #FFB800;
    --accent-error: #FF3366;
    
    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #A1A8B3;
    --text-tertiary: #6B7280;
    --text-disabled: #4B5563;
    
    /* Borders - More Subtle */
    --border-primary: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.04);
    
    /* Shadows - Subtle & Modern */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.16);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.24);
    
    /* Typography */
    --font-primary: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-brand: 'Manifold Extended', sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    --font-numeric: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    
    /* Spacing - Compact Scale */
    --space-xs: 3px;
    --space-sm: 6px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 20px;
    --space-2xl: 32px;
    
    /* Border Radius - Compact */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Transitions - Faster */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(at 0% 0%, rgba(255, 255, 255, 0.02) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(255, 255, 255, 0.02) 0px, transparent 50%);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Layout Container */
.atlas-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.atlas-sidebar {
    width: var(--sidebar-width);
    background: rgba(10, 15, 26, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 1px 0 0 var(--border-subtle), 4px 0 24px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1000;
    transition: width var(--transition-normal);
}

.atlas-sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

/* Sidebar Header */
.sidebar-header {
    padding: 12px var(--space-md) var(--space-lg) var(--space-md);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 180px;
}

.sidebar-logo {
    width: 116px;
    height: 116px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.25)) drop-shadow(0 0 35px rgba(255, 255, 255, 0.12));
    transition: all var(--transition-normal);
}

.atlas-sidebar.collapsed .sidebar-logo {
    width: 75.4px;
    height: 75.4px;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
    margin-top: -25px;
    overflow: visible;
    transition: opacity var(--transition-fast);
    text-align: center;
    flex: 1;
    width: 100%;
}

.atlas-sidebar.collapsed .sidebar-brand {
    opacity: 0;
    width: 0;
}

.brand-name {
    font-family: var(--font-brand);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    line-height: 1;
}

.brand-subtitle {
    font-size: 11px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation Menu */
.sidebar-nav {
    flex: 1;
    padding: var(--space-lg) 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-section {
    margin-bottom: var(--space-lg);
}

.nav-section-title {
    display: block;
    padding: var(--space-sm) var(--space-md);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    margin-bottom: var(--space-xs);
}

.nav-items {
    list-style: none;
}

.nav-item {
    margin: 2px var(--space-sm);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 10px var(--space-md);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-primary);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-primary);
    border-radius: 0 2px 2px 0;
    box-shadow: -2px 0 12px rgba(255, 255, 255, 0.6), -4px 0 24px rgba(255, 255, 255, 0.3);
}

.nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.nav-text {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: opacity var(--transition-fast);
}

.atlas-sidebar.collapsed .nav-text {
    opacity: 0;
    width: 0;
}

.nav-badge {
    margin-left: auto;
    background: var(--accent-error);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: var(--space-md);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: row;
    gap: var(--space-sm);
    align-items: center;
}

/* Theme Toggle Switch */
.theme-toggle-container {
    flex: 1;
    cursor: pointer;
}

.theme-toggle-track {
    position: relative;
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
    transition: all var(--transition-normal);
}

.theme-toggle-track:hover {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
}

.theme-toggle-slider {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    left: 2px;
}

.theme-toggle-slider.light-mode {
    left: calc(100% - 18px);
}

.theme-icon {
    font-size: 6px;
    line-height: 1;
    color: var(--bg-primary);
}

.theme-label {
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    transition: all var(--transition-normal);
    pointer-events: none;
    z-index: 1;
    position: absolute;
}

.theme-label-light {
    left: 50%;
    transform: translateX(-50%);
}

.theme-label-dark {
    left: 50%;
    transform: translateX(-50%);
}

.theme-toggle-track.light-mode .theme-label-light {
    color: var(--text-primary);
}

.theme-toggle-track.dark-mode .theme-label-dark {
    color: var(--text-primary);
}

.theme-toggle-track.light-mode .theme-label-dark {
    opacity: 0;
}

.theme-toggle-track.dark-mode .theme-label-light {
    opacity: 0;
}

.sidebar-toggle {
    flex: 1;
    height: 20px;
    padding: var(--space-xs);
    background: transparent;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.sidebar-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-primary);
}

/* Main Content Area */
.atlas-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition-normal);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.atlas-sidebar.collapsed ~ .atlas-main {
    margin-left: var(--sidebar-collapsed-width);
}

/* Top Bar */
.atlas-topbar {
    background: rgba(10, 15, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    padding: var(--space-md) var(--space-xl);
    display: flex;
    align-items: center;
    min-height: 52px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex: 1;
}

.page-title {
    font-family: var(--font-brand);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.topbar-center {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding-left: var(--space-md);
    border-left: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.topbar-action {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.topbar-action:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.topbar-action.primary {
    background: #FFFFFF !important;
    color: #000000 !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.topbar-action.primary:hover {
    background: #FFFFFF !important;
    color: #000000 !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Ensure all child elements in primary topbar actions are black */
.topbar-action.primary span,
.topbar-action.primary * {
    color: #000000 !important;
}

/* Content Container */
.atlas-content {
    flex: 1;
    padding: var(--space-lg) var(--space-xl);
    width: 100%;
    box-sizing: border-box;
}

/* Cards */
.atlas-card {
    background: rgba(10, 15, 26, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-sm), 0 0 15px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-normal);
    position: relative;
}

.atlas-card:hover {
    box-shadow: var(--shadow-md), 0 0 15px rgba(255, 255, 255, 0.175), 0 0 35px rgba(255, 255, 255, 0.09);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.card-actions {
    display: flex;
    gap: var(--space-sm);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.stat-card {
    background: rgba(10, 15, 26, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-sm), 0 0 15px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    transition: all var(--transition-normal);
    position: relative;
}

.stat-card:hover {
    box-shadow: var(--shadow-hover), 0 0 15px rgba(255, 255, 255, 0.2), 0 0 35px rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.15);
}

.stat-icon {
    width: 32px;
    height: 32px;
    background: transparent;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    opacity: 0.6;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 10px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 2px;
    font-weight: 600;
}

.stat-value {
    font-family: var(--font-numeric);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.02em;
    transition: all var(--transition-normal);
}

.stat-card:hover .stat-value {
    color: var(--accent-primary);
}

.stat-change {
    font-size: 12px;
    margin-top: 4px;
}

.stat-change.positive {
    color: var(--accent-success);
}

.stat-change.negative {
    color: var(--accent-error);
}

/* Buttons */
.btn {
    padding: 6px 16px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.btn-primary {
    background: #FFFFFF !important;
    color: #000000 !important;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.btn-primary:hover {
    background: #FFFFFF !important;
    color: #000000 !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Additional specificity for button text */
button.btn-primary,
a.btn-primary,
.btn-primary span,
.btn-primary * {
    color: #000000 !important;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-primary);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15), 0 0 10px rgba(255, 255, 255, 0.1);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: none;
}

.btn-ghost:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Tables */
.atlas-table {
    width: 100%;
    border-collapse: collapse;
}

.atlas-table thead {
    border-bottom: 1px solid var(--border-primary);
}

.atlas-table th {
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.atlas-table td {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 12px;
}

.atlas-table tbody tr {
    transition: background var(--transition-fast);
}

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

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

.badge.primary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.badge.success {
    background: rgba(0, 255, 136, 0.15);
    color: var(--accent-success);
    border: 1px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.3);
}

.badge.warning {
    background: rgba(255, 184, 0, 0.15);
    color: var(--accent-warning);
    border: 1px solid rgba(255, 184, 0, 0.3);
    box-shadow: 0 0 12px rgba(255, 184, 0, 0.3);
}

.badge.error {
    background: rgba(255, 51, 102, 0.15);
    color: var(--accent-error);
    border: 1px solid rgba(255, 51, 102, 0.3);
    box-shadow: 0 0 12px rgba(255, 51, 102, 0.3);
}

/* Loading Skeleton */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: var(--radius-md);
}


/* Pulse Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Glow Animation */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 217, 255, 0.3); }
    50% { box-shadow: 0 0 40px rgba(0, 217, 255, 0.6); }
}

.glow {
    animation: glow 2s ease-in-out infinite;
}

/* Counter Animation */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.count-up {
    animation: countUp 0.6s ease-out;
}

/* Stagger Animation */
.stagger-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

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

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--bg-primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.4);
}

.tooltip:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* Live Status Indicator */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-indicator.live {
    background: var(--accent-success);
    box-shadow: 0 0 12px var(--accent-success);
    animation: pulse 2s infinite;
}

.status-indicator.offline {
    background: var(--text-tertiary);
}

.status-indicator.error {
    background: var(--accent-error);
    box-shadow: 0 0 12px var(--accent-error);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

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

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.2), 0 0 24px rgba(255, 255, 255, 0.1);
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

/* Selection */
::selection {
    background: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

/* Smooth Transitions */
* {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive */
@media (max-width: 768px) {
    .atlas-sidebar {
        width: var(--sidebar-collapsed-width);
    }
    
    .atlas-main {
        margin-left: var(--sidebar-collapsed-width);
    }
    
    .sidebar-brand,
    .nav-text,
    .nav-section-title {
        opacity: 0;
        width: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-primary);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Empty States */
.empty-state {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-tertiary);
}

.empty-state-icon {
    font-size: 36px;
    margin-bottom: var(--space-sm);
    opacity: 0.5;
}

.empty-state-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.empty-state-text {
    font-size: 13px;
    color: var(--text-tertiary);
}
