@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Gallery Slate Design System Tokens */
    --surface: #f8f9fa;
    --surface-dim: #d9dadb;
    --surface-bright: #f8f9fa;
    --surface-container-lowest: #ffffff;
    --surface-container-low: #f3f4f5;
    --surface-container: #edeeef;
    --surface-container-high: #e7e8e9;
    --surface-container-highest: #e1e3e4;
    --on-surface: #191c1d;
    --on-surface-variant: #44474c;
    --inverse-surface: #2e3132;
    --inverse-on-surface: #f0f1f2;
    --outline: #75777d;
    --outline-variant: #c5c6cd;
    
    --brand-slate: #4a5568;
    --brand-gold: #c5a059;
    --brand-border: #e2e8f0;

    --text-primary: var(--on-surface);
    --text-secondary: var(--on-surface-variant);
    
    /* Accent maps to Slate Blue */
    --accent: var(--brand-slate);
    --accent-hover: #333e50;
    
    /* Success, warning, error (low vibrancy, sophisticated) */
    --success: #4a6f58;
    --warning: #c29545;
    --danger: #ba1a1a;
    
    /* Layout */
    --sidebar-width: 260px;
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Manrope', sans-serif;
    
    /* Shape roundedness (Soft elements, sharp photos) */
    --rounded-sm: 4px;
    --rounded-md: 6px;
    --rounded-lg: 8px;
    --rounded-xl: 12px;
    --rounded-full: 9999px;
    
    --transition: all 0.2s ease-in-out;
}

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

body {
    background-color: var(--surface);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* Sidebar Navigation */
aside {
    width: var(--sidebar-width);
    background: var(--surface-container-low);
    border-right: 1px solid var(--brand-border);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.logo-image {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-slate);
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: var(--rounded-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-body);
    transition: var(--transition);
}

.nav-links a:hover, .nav-links li.active a {
    color: var(--text-primary);
    background: var(--surface-container);
}

.nav-links li.active a {
    background: var(--surface-container-highest);
    border-left: 3px solid var(--brand-gold);
    color: var(--brand-slate);
    border-radius: 0 var(--rounded-sm) var(--rounded-sm) 0;
    padding-left: calc(1rem - 3px);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--brand-border);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand-slate);
}

.user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    color: var(--text-primary);
}

.logout-link {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.logout-link:hover {
    color: var(--danger);
}

/* Main Content Area */
main {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    padding: 2.5rem 40px;
    max-width: 1400px;
    min-width: 0;
}

header {
    margin-bottom: 2.5rem;
}

h1 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    color: var(--brand-slate);
    text-wrap: balance;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    font-family: var(--font-body);
}

/* Cards & Grids */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.card {
    background: var(--surface-container-lowest);
    border: 1px solid var(--brand-border);
    border-radius: var(--rounded-lg);
    padding: 1.5rem;
    box-shadow: none;
    transition: var(--transition);
    min-width: 0;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(74, 85, 104, 0.15); /* 15% opacity primary, 20px+ blur */
    border-color: var(--outline-variant);
}

.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.stat-val {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-slate);
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-ok { color: var(--success); }
.status-ok .status-dot { background-color: var(--success); box-shadow: 0 0 8px rgba(74, 111, 88, 0.4); }

.status-warning { color: var(--warning); }
.status-warning .status-dot { background-color: var(--warning); box-shadow: 0 0 8px rgba(194, 149, 69, 0.4); }

.status-error { color: var(--danger); }
.status-error .status-dot { background-color: var(--danger); box-shadow: 0 0 8px rgba(186, 26, 26, 0.4); }

.dashboard-section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--brand-slate);
}

.grid-2col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2.5rem;
}

.grid-2col > * {
    min-width: 0;
}

@media (max-width: 1024px) {
    .grid-2col {
        grid-template-columns: 1fr;
    }
}

.cadence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.model-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.alt-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 576px) {
    .alt-text-grid {
        grid-template-columns: 1fr;
    }
}

/* Tables */
.table-container {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    padding: 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--brand-border);
    font-family: var(--font-body);
    font-weight: 600;
}

td {
    padding: 1.2rem 1rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--brand-border);
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: var(--surface-container-low);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: var(--rounded-sm);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-success { background: #e3ece6; color: #2e503b; border: 1px solid #c8dcd0; }
.badge-error { background: #fce8e6; color: #93000a; border: 1px solid #f9c7c2; }
.badge-running { background: #e8ebf0; color: #2a384c; border: 1px solid #d2dbe5; }

.badge-proposed { background: #f5f0fa; color: #683d94; border: 1px solid #e2d2f3; }
.badge-approved-pending-publish { background: #e3ece6; color: #2e503b; border: 1px solid #c8dcd0; }
.badge-publishing { background: #e8ebf0; color: #2a384c; border: 1px solid #d2dbe5; }
.badge-published { background: #e3ece6; color: #2e503b; border: 1px solid #c8dcd0; }
.badge-rejected { background: #fce8e6; color: #93000a; border: 1px solid #f9c7c2; }

/* Alerts Display */
.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.alert-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem;
    border-radius: var(--rounded-lg);
    background: #fce8e6;
    border: 1px solid #f9c7c2;
    transition: var(--transition);
}

.alert-main {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.alert-icon {
    color: var(--danger);
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.alert-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    flex: 1;
}

.alert-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--danger);
}

.alert-message {
    color: var(--text-primary);
    font-size: 0.85rem;
    line-height: 1.45;
    word-break: break-all;
    overflow-wrap: break-word;
}

.alert-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.alert-action {
    flex-shrink: 0;
}

.alerts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.alerts-header h2 {
    color: var(--danger);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.btn-dismiss-all {
    background: var(--danger);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: var(--rounded-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-dismiss-all:hover {
    background: #93000a;
}

/* Image Grid for Catalog View */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.image-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.image-preview-container {
    width: 100%;
    height: 200px;
    border-radius: 0 !important; /* Sharp corners for photography containers */
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--brand-border); /* Subtle 1px stroke */
    position: relative;
    background: var(--surface-container-low);
}

.image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
    transition: var(--transition);
}

.image-card:hover .image-preview {
    transform: scale(1.02);
}

.image-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(13, 15, 18, 0.85);
    backdrop-filter: blur(4px);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--rounded-sm);
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    color: var(--brand-slate);
}

.image-meta {
    color: var(--text-secondary);
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: auto;
}

.image-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.image-tag {
    background: var(--brand-border);
    color: var(--brand-slate);
    border: none;
    padding: 0.15rem 0.4rem;
    border-radius: var(--rounded-sm);
    font-size: 0.7rem;
    font-family: var(--font-body);
    font-weight: 500;
}

/* Premium Login Landing Page */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    background: radial-gradient(circle at center, #dde3eb 0%, var(--surface) 70%);
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 3rem;
    text-align: center;
    background: var(--surface-container-lowest);
    border: 1px solid var(--brand-border);
    border-radius: var(--rounded-xl);
}

.login-logo {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin: 0 auto 1.5rem auto;
}

.login-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    color: var(--brand-slate);
}

.login-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem;
    background: white;
    color: #1e293b;
    border: 1px solid var(--brand-border);
    border-radius: var(--rounded-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.btn-google:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-google svg {
    width: 20px;
    height: 20px;
}

.login-error {
    background: #fce8e6;
    border: 1px solid #f9c7c2;
    color: #93000a;
    padding: 0.75rem;
    border-radius: var(--rounded-sm);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Custom Buttons & Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    border-radius: var(--rounded-sm); /* Soft corners: 4px */
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: var(--font-body);
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--brand-slate);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 85, 104, 0.2);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--brand-border);
    color: var(--brand-slate);
}

.btn-secondary:hover {
    background: var(--surface-container-low);
}

.btn-danger {
    background: rgba(186, 26, 26, 0.1);
    border: 1px solid rgba(186, 26, 26, 0.2);
    color: #ba1a1a;
}

.btn-danger:hover {
    background: rgba(186, 26, 26, 0.2);
}

.btn-accent {
    background: var(--brand-gold);
    color: white;
    border: none;
}

.btn-accent:hover {
    background: #b38e4a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.2);
}

/* Mobile Header and Backdrop */
.mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--brand-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 90;
}

.mobile-header .logo-container {
    margin-bottom: 0;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: var(--rounded-sm);
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--surface-container-low);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 95;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Kanban Board Styling */
.kanban-board-container {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 1.5rem;
    margin-top: 1.5rem;
}

.kanban-board {
    display: flex;
    gap: 1.25rem;
    min-width: fit-content;
}

.kanban-column {
    background: var(--surface-container-low);
    border: 1px solid var(--brand-border);
    border-radius: var(--rounded-xl);
    width: 280px;
    display: flex;
    flex-direction: column;
    max-height: 70vh;
}

.kanban-column-header {
    padding: 1rem;
    border-bottom: 1px solid var(--brand-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface-container-high);
    border-top-left-radius: 11px;
    border-top-right-radius: 11px;
}

.kanban-column-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brand-slate);
    font-family: var(--font-heading);
}

.column-count {
    background: var(--surface-container-highest);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--text-secondary);
}

.kanban-cards-list {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    flex-grow: 1;
}

.kanban-cards-list::-webkit-scrollbar {
    width: 5px;
}
.kanban-cards-list::-webkit-scrollbar-track {
    background: transparent;
}
.kanban-cards-list::-webkit-scrollbar-thumb {
    background: var(--brand-border);
    border-radius: 10px;
}

.empty-column-state {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    border: 1px dashed var(--brand-border);
    border-radius: var(--rounded-lg);
}

.kanban-card {
    background: var(--surface-container-lowest);
    border: 1px solid var(--brand-border);
    border-radius: var(--rounded-lg);
    padding: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.kanban-card:hover {
    transform: translateY(-2px);
    border-color: var(--outline-variant);
    box-shadow: 0 6px 16px rgba(74, 85, 104, 0.1);
}

.card-thumbnail-container {
    width: 100%;
    height: 120px;
    border-radius: 0 !important; /* Sharp corners for photography */
    overflow: hidden;
    background: var(--surface-container-low);
    margin-bottom: 0.5rem;
    border: 1px solid var(--brand-border);
}

.card-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-id {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--brand-slate);
}

.card-platforms {
    display: flex;
    gap: 4px;
}

.platform-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.platform-dot.inst { background: #e1306c; }
.platform-dot.fb { background: #1877f2; }

.card-schedule-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--brand-border);
    padding-top: 0.35rem;
    margin-top: 0.15rem;
}

.card-image-key {
    font-size: 0.7rem;
    color: var(--text-secondary);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 100%;
}

/* Modal Dialog Styling */
.post-dialog {
    border: 1px solid var(--brand-border);
    border-radius: var(--rounded-xl);
    background: var(--surface-container-lowest);
    color: var(--text-primary);
    padding: 0;
    max-width: 650px;
    width: 90%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 16px 48px rgba(74, 85, 104, 0.2);
}

.post-dialog::backdrop {
    background: rgba(25, 28, 29, 0.4);
    backdrop-filter: blur(4px);
}

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

.dialog-header h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--brand-slate);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--danger);
}

.dialog-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

/* Form Styling Common */
.form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-control {
    background: var(--surface-container-lowest);
    border: 1px solid var(--brand-border);
    border-radius: var(--rounded-md);
    padding: 0.65rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.2);
}

/* Toggle Switch Styles */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--surface-dim);
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--danger);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Analytics Tab Navigation */
.chart-tab {
    background: var(--surface-container-lowest);
    border: 1px solid var(--brand-border);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: var(--rounded-md);
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.chart-tab:hover {
    background: var(--surface-container-low);
    color: var(--text-primary);
}

.chart-tab.active {
    background: var(--brand-slate);
    color: white;
    border-color: var(--brand-slate);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    aside {
        width: 240px;
    }
    main {
        margin-left: 240px;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    
    .mobile-header {
        display: flex;
    }
    
    aside {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        height: 100vh;
        z-index: 100;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.05);
    }
    
    aside.active {
        transform: translateX(0);
    }
    
    main {
        margin-left: 0;
        padding: 1.25rem;
        margin-top: 60px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
