/* 
   ZoneTrain Shared Dashboard Styles
   Focus: Dark Theme, Reusable Components, Mobile Responsive
*/

:root {
    /* Shared Variables for all Dashboards */
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --primary: #8b5cf6;
    --primary-glow: rgba(139, 92, 246, 0.4);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --text-nav: #cdccca;
    --accent: #10b981;
    --danger: #ef4444;
    --sidebar-width: 260px;

    /* Legacy/Internal zt- prefixed variables */
    --zt-bg-dark: var(--bg-dark);
    --zt-bg-sidebar: var(--bg-card);
    --zt-bg-card: var(--bg-card);
    --zt-primary: var(--primary);
    --zt-primary-glow: var(--primary-glow);
    --zt-text-main: var(--text-main);
    --zt-text-dim: var(--text-dim);
    --zt-accent: var(--accent);
    --zt-danger: var(--danger);
    --zt-border: #334155;
    --zt-sidebar-width: var(--sidebar-width);
    --zt-header-height: 70px;
    --zt-transition: all 0.2s ease;
}

/* Base Layout Structure */
.zt-dashboard-layout {
    display: flex;
    min-height: 100vh;
    background-color: var(--zt-bg-dark);
    color: var(--zt-text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Left Sidebar Navigation */
.zt-sidebar {
    width: var(--zt-sidebar-width);
    background: var(--zt-bg-sidebar);
    border-right: 1px solid var(--zt-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.zt-main-content {
    margin-left: var(--zt-sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    max-width: none;
    width: 100%;
}

/* Card Component */
.zt-card {
    background: var(--zt-bg-card);
    border: 1px solid var(--zt-border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Hero Action Card */
.zt-hero-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid var(--zt-border);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Stat Chip Component */
.zt-stat-chip {
    background: var(--zt-bg-card);
    border: 1px solid var(--zt-border);
    padding: 16px 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: var(--zt-transition);
}

.zt-stat-chip:hover {
    transform: translateY(-2px);
    border-color: var(--zt-primary);
}

.zt-stat-label {
    font-size: 11px;
    color: var(--zt-text-dim);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.zt-stat-value {
    font-size: 20px;
    font-weight: 800;
}

/* Empty Widget Shimmer Effect */
.widget-slot:empty::after {
    content: '';
    display: block;
    height: 80px;
    background: linear-gradient(90deg, #1e293b 25%, #2d3f55 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 16px;
    margin-bottom: 16px;
}

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

    100% {
        background-position: -200% 0;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .zt-sidebar.zt-bottom-nav {
        width: 100%;
        height: 65px;
        bottom: 0;
        top: auto;
        flex-direction: row;
        border-right: none;
        border-top: 1px solid var(--zt-border);
        justify-content: space-around;
        padding: 0 10px;
    }

    .zt-main-content {
        margin-left: 0;
        margin-bottom: 65px;
        padding: 20px;
    }

    /* Hide non-essential sidebar elements on mobile */
    .zt-sidebar .sidebar-logo,
    .zt-sidebar .sidebar-footer,
    .zt-sidebar .nav-item span {
        display: none;
    }

    .zt-sidebar .nav-item {
        padding: 10px;
        margin: 0;
        justify-content: center;
    }

    .zt-sidebar .nav-item i {
        font-size: 20px;
        margin: 0;
    }
}