/* Enhanced Dashboard Styling - Premium Visual Experience */

/* =========================
   DASHBOARD ENHANCEMENTS
   ========================= */

:root {
    --gradient-primary: linear-gradient(135deg, #0f4c81 0%, #1f7a8c 100%);
    --gradient-secondary: linear-gradient(135deg, #1f7a8c 0%, #2a9ba8 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --gradient-tertiary: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    
    --card-shadow: 0 4px 20px rgba(15, 76, 129, 0.1);
    --card-shadow-hover: 0 8px 30px rgba(15, 76, 129, 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Stat Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(31, 122, 140, 0.1);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.stat-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 8px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-card .stat-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 22px;
    color: rgba(31, 122, 140, 0.2);
}

.stat-card.success { --stat-color: var(--gradient-success); }
.stat-card.warning { --stat-color: var(--gradient-warning); }
.stat-card.danger { --stat-color: var(--gradient-danger); }

.stat-card.success::before { background: var(--gradient-success); }
.stat-card.warning::before { background: var(--gradient-warning); }
.stat-card.danger::before { background: var(--gradient-danger); }

/* Enhanced Sections */
.dashboard-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(31, 122, 140, 0.1);
    margin-bottom: 24px;
}

.dashboard-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: #0f4c81;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-section h2 i {
    font-size: 1.2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dashboard-section p {
    margin: 0;
    color: #64748b;
    font-size: 0.85rem;
}

/* Enhanced Progress Indicators */
.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(31, 122, 140, 0.5);
    transition: width 0.4s ease;
}

.progress-text {
    font-weight: 700;
    color: #0f4c81;
    min-width: 40px;
    text-align: right;
}

/* Enhanced Data Cards Grid */
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.data-card {
    background: linear-gradient(135deg, #f8fbff 0%, #f0f7ff 100%);
    border: 1px solid rgba(31, 122, 140, 0.2);
    border-radius: 10px;
    padding: 14px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.data-card:hover {
    background: linear-gradient(135deg, #eef5ff 0%, #e0edff 100%);
    border-color: rgba(31, 122, 140, 0.4);
    transform: translateY(-2px);
}

.data-card-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.data-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f4c81;
}

/* Enhanced Table Styling */
.enhanced-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.enhanced-table thead {
    background: linear-gradient(135deg, #0f4c81 0%, #1f7a8c 100%);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.enhanced-table th {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 2px solid rgba(31, 122, 140, 0.2);
}

.enhanced-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: var(--transition-smooth);
}

.enhanced-table tbody tr:hover {
    background: #f8fbff;
}

.enhanced-table td {
    padding: 12px;
    color: #334155;
    font-size: 0.9rem;
}

.enhanced-table td strong {
    color: #0f4c81;
}

/* Enhanced Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: capitalize;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.status-badge.inactive {
    background: rgba(107, 114, 128, 0.1);
    color: #4b5563;
}

.status-badge.warning {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* Enhanced Toggle Buttons */
.toggle-group {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.toggle-btn {
    padding: 8px 14px;
    border: 2px solid #dbe4ef;
    background: white;
    color: #0f4c81;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.toggle-btn:hover {
    border-color: #0f4c81;
    background: #f8fbff;
}

.toggle-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: #0f4c81;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
    margin: 20px 0;
    padding: 12px;
    background: linear-gradient(135deg, #f8fbff 0%, #f0f7ff 100%);
    border-radius: 10px;
    border: 1px solid rgba(31, 122, 140, 0.1);
}

.chart-container canvas {
    max-height: 100%;
}

/* Mini Chart Cards */
.mini-chart-card {
    background: white;
    border-radius: 10px;
    padding: 16px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(31, 122, 140, 0.1);
    position: relative;
}

.mini-chart-card h4 {
    margin: 0 0 12px;
    font-size: 0.9rem;
    color: #0f4c81;
    font-weight: 700;
}

.mini-chart-container {
    position: relative;
    height: 200px;
    width: 100%;
}

/* Metric Indicators */
.metric-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fbff;
    border-radius: 8px;
    border-left: 4px solid var(--gradient-primary);
    margin-bottom: 10px;
}

.metric-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.metric-content {
    flex: 1;
}

.metric-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f4c81;
}

/* Quick Action Buttons */
.quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 76, 129, 0.3);
}

/* Alert/Notification Cards */
.alert-card {
    background: white;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
    border-left: 4px solid;
    box-shadow: var(--card-shadow);
    display: flex;
    gap: 12px;
}

.alert-card.info {
    border-left-color: #0f4c81;
    background: linear-gradient(to right, rgba(15, 76, 129, 0.05) 0%, transparent 100%);
}

.alert-card.success {
    border-left-color: #10b981;
    background: linear-gradient(to right, rgba(16, 185, 129, 0.05) 0%, transparent 100%);
}

.alert-card.warning {
    border-left-color: #f59e0b;
    background: linear-gradient(to right, rgba(245, 158, 11, 0.05) 0%, transparent 100%);
}

.alert-icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 24px;
}

.alert-card.info .alert-icon { color: #0f4c81; }
.alert-card.success .alert-icon { color: #10b981; }
.alert-card.warning .alert-icon { color: #f59e0b; }

.alert-content {
    flex: 1;
    font-size: 0.9rem;
}

.alert-content strong {
    display: block;
    margin-bottom: 4px;
    color: #0f2d4a;
}

/* Dashboard Grid and Responsive */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.dashboard-grid.two-col {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-card h3 {
        font-size: 1.5rem;
    }
    
    .dashboard-section {
        padding: 16px;
    }
    
    .dashboard-grid,
    .dashboard-grid.two-col {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 250px;
    }
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card,
.dashboard-section,
.mini-chart-card {
    animation: slideInUp 0.5s ease-out;
}

/* Loading Animation */
.skeleton-loader {
    background: linear-gradient(90deg, #f0f7ff 25%, #e0edff 50%, #f0f7ff 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

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

/* ==========================================
   DARK MODE OVERRIDES FOR ENHANCED DASHBOARD
   ========================================== */

/* Dark Mode Variables Override */
:root[data-theme="dark"] {
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --card-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.55);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
        --card-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.55);
    }
}

/* Base selectors for data-theme="dark" */
[data-theme="dark"] .stat-card,
[data-theme="dark"] .dashboard-section,
[data-theme="dark"] .mini-chart-card {
    background: var(--surface);
    border-color: var(--line);
    color: var(--text);
}

[data-theme="dark"] .stat-card h3 {
    background: var(--brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .stat-card p,
[data-theme="dark"] .dashboard-section p,
[data-theme="dark"] .data-card-label,
[data-theme="dark"] .metric-label {
    color: var(--muted);
}

[data-theme="dark"] .dashboard-section h2,
[data-theme="dark"] .data-card-value,
[data-theme="dark"] .enhanced-table td strong,
[data-theme="dark"] .metric-value,
[data-theme="dark"] .progress-text,
[data-theme="dark"] .mini-chart-card h4 {
    color: var(--brand);
}

[data-theme="dark"] .progress-bar {
    background: var(--surface-soft);
}

[data-theme="dark"] .data-card {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-soft) 100%);
    border-color: var(--line);
}

[data-theme="dark"] .data-card:hover {
    background: linear-gradient(135deg, var(--surface-soft) 0%, var(--surface) 100%);
    border-color: var(--brand-2);
}

[data-theme="dark"] .enhanced-table thead {
    background: linear-gradient(135deg, var(--surface-soft) 0%, var(--surface) 100%);
    color: var(--brand);
}

[data-theme="dark"] .enhanced-table th {
    border-bottom: 2px solid var(--line);
}

[data-theme="dark"] .enhanced-table tbody tr {
    border-bottom: 1px solid var(--line);
}

[data-theme="dark"] .enhanced-table tbody tr:hover {
    background: var(--surface-soft);
}

[data-theme="dark"] .enhanced-table td {
    color: var(--text);
}

[data-theme="dark"] .toggle-btn {
    background: var(--surface);
    color: var(--text);
    border-color: var(--line);
}

[data-theme="dark"] .toggle-btn:hover {
    background: var(--surface-soft);
    border-color: var(--brand);
}

[data-theme="dark"] .toggle-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--brand);
}

[data-theme="dark"] .chart-container,
[data-theme="dark"] .metric-indicator {
    background: var(--surface-soft);
    border-color: var(--line);
}

[data-theme="dark"] .alert-card {
    background: var(--surface);
    box-shadow: var(--shadow);
}

[data-theme="dark"] .alert-card.info {
    border-left-color: var(--brand);
    background: linear-gradient(to right, rgba(56, 189, 248, 0.08) 0%, transparent 100%);
}

[data-theme="dark"] .alert-card.success {
    border-left-color: var(--success);
    background: linear-gradient(to right, rgba(52, 211, 153, 0.08) 0%, transparent 100%);
}

[data-theme="dark"] .alert-card.warning {
    border-left-color: var(--warning);
    background: linear-gradient(to right, rgba(251, 191, 36, 0.08) 0%, transparent 100%);
}

[data-theme="dark"] .alert-content strong {
    color: var(--text);
}


/* Media query prefers-color-scheme: dark compatibility */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .stat-card,
    :root:not([data-theme="light"]) .dashboard-section,
    :root:not([data-theme="light"]) .mini-chart-card {
        background: var(--surface);
        border-color: var(--line);
        color: var(--text);
    }

    :root:not([data-theme="light"]) .stat-card h3 {
        background: var(--brand);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    :root:not([data-theme="light"]) .stat-card p,
    :root:not([data-theme="light"]) .dashboard-section p,
    :root:not([data-theme="light"]) .data-card-label,
    :root:not([data-theme="light"]) .metric-label {
        color: var(--muted);
    }

    :root:not([data-theme="light"]) .dashboard-section h2,
    :root:not([data-theme="light"]) .data-card-value,
    :root:not([data-theme="light"]) .enhanced-table td strong,
    :root:not([data-theme="light"]) .metric-value,
    :root:not([data-theme="light"]) .progress-text,
    :root:not([data-theme="light"]) .mini-chart-card h4 {
        color: var(--brand);
    }

    :root:not([data-theme="light"]) .progress-bar {
        background: var(--surface-soft);
    }

    :root:not([data-theme="light"]) .data-card {
        background: linear-gradient(135deg, var(--surface) 0%, var(--surface-soft) 100%);
        border-color: var(--line);
    }

    :root:not([data-theme="light"]) .data-card:hover {
        background: linear-gradient(135deg, var(--surface-soft) 0%, var(--surface) 100%);
        border-color: var(--brand-2);
    }

    :root:not([data-theme="light"]) .enhanced-table thead {
        background: linear-gradient(135deg, var(--surface-soft) 0%, var(--surface) 100%);
        color: var(--brand);
    }

    :root:not([data-theme="light"]) .enhanced-table th {
        border-bottom: 2px solid var(--line);
    }

    :root:not([data-theme="light"]) .enhanced-table tbody tr {
        border-bottom: 1px solid var(--line);
    }

    :root:not([data-theme="light"]) .enhanced-table tbody tr:hover {
        background: var(--surface-soft);
    }

    :root:not([data-theme="light"]) .enhanced-table td {
        color: var(--text);
    }

    :root:not([data-theme="light"]) .toggle-btn {
        background: var(--surface);
        color: var(--text);
        border-color: var(--line);
    }

    :root:not([data-theme="light"]) .toggle-btn:hover {
        background: var(--surface-soft);
        border-color: var(--brand);
    }

    :root:not([data-theme="light"]) .toggle-btn.active {
        background: var(--gradient-primary);
        color: white;
        border-color: var(--brand);
    }

    :root:not([data-theme="light"]) .chart-container,
    :root:not([data-theme="light"]) .metric-indicator {
        background: var(--surface-soft);
        border-color: var(--line);
    }

    :root:not([data-theme="light"]) .alert-card {
        background: var(--surface);
        box-shadow: var(--shadow);
    }

    :root:not([data-theme="light"]) .alert-card.info {
        border-left-color: var(--brand);
        background: linear-gradient(to right, rgba(56, 189, 248, 0.08) 0%, transparent 100%);
    }

    :root:not([data-theme="light"]) .alert-card.success {
        border-left-color: var(--success);
        background: linear-gradient(to right, rgba(52, 211, 153, 0.08) 0%, transparent 100%);
    }

        border-left-color: var(--warning);
        background: linear-gradient(to right, rgba(251, 191, 36, 0.08) 0%, transparent 100%)
    }

    :root:not([data-theme="light"]) .alert-content strong {
        color: var(--text);
    }

}

/* ==========================================================================
   PREMIUM TEACHER DASHBOARD SPECIFIC STYLES
   ========================================================================== */

/* Premium Header Card */
.premium-header {
    position: relative;
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 28px;
    color: #f8fbff;
    background: linear-gradient(130deg, var(--brand) 0%, var(--brand-2) 56%, #2f9db0 100%);
    box-shadow: 0 10px 30px rgba(15, 76, 129, 0.15);
    overflow: hidden;
    z-index: 1;
}

.premium-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.premium-header-content {
    max-width: 90%;
}

/* Metadata Grid */
.premium-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px 20px;
    margin-top: 22px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.07);
    padding: 8px 14px;
    border-radius: 8px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
}

.meta-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.meta-item i {
    color: #a5f3fc; /* Bright cyan accent */
    font-size: 1.05rem;
    flex-shrink: 0;
}

.meta-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Premium Workflow Timeline */
.premium-workflow-card {
    padding: 28px !important;
}

.premium-timeline {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.timeline-step {
    position: relative;
    padding-left: 48px;
    padding-bottom: 24px;
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 28px;
    bottom: 0;
    width: 2px;
    border-left: 2px dashed rgba(31, 122, 140, 0.25);
}

.timeline-step:last-child::before {
    display: none;
}

.timeline-step::after {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 2px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    color: white;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(15, 76, 129, 0.25);
    border: 2px solid white;
    transition: all 0.2s ease;
    z-index: 2;
}

.timeline-step:hover::after {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(15, 76, 129, 0.35);
}

.timeline-step h4 {
    margin: 0 0 6px;
    color: #0f4c81;
    font-size: 1.05rem;
    font-weight: 700;
}

.timeline-step p {
    margin: 0;
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.5;
}

/* Info Grid & Tile (Score Entry Metadata) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.info-tile {
    background: linear-gradient(135deg, #f8fbff 0%, #f0f7ff 100%);
    border: 1px solid rgba(31, 122, 140, 0.15);
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(31, 122, 140, 0.08);
    border-color: rgba(31, 122, 140, 0.35);
}

.info-tile-label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
    font-weight: 600;
}

.info-tile strong {
    font-size: 1.15rem;
    color: #0f4c81;
    font-weight: 700;
}

/* Enhanced Table Enhancements */
.enhanced-table th {
    font-weight: 600;
    letter-spacing: 0.3px;
}

.enhanced-table tbody tr {
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.enhanced-table tbody tr:hover {
    background-color: #f1f7fc !important;
}

/* ==========================================================================
   DARK THEME COMPATIBILITY OVERRIDES
   ========================================================================== */

:root[data-theme="dark"] .premium-header {
    background: linear-gradient(130deg, #1e1b4b 0%, #0f172a 56%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

:root[data-theme="dark"] .meta-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] .meta-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] .meta-item i {
    color: #38bdf8; /* Brighter sky blue for dark mode */
}

:root[data-theme="dark"] .timeline-step::before {
    border-left-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .timeline-step::after {
    border-color: #1e293b;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

:root[data-theme="dark"] .timeline-step h4 {
    color: #f1f5f9;
}

:root[data-theme="dark"] .timeline-step p {
    color: #94a3b8;
}

:root[data-theme="dark"] .info-tile {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] .info-tile-label {
    color: #94a3b8;
}

:root[data-theme="dark"] .info-tile strong {
    color: #38bdf8;
}

:root[data-theme="dark"] .enhanced-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02) !important;
}