/* ============================================
   IMPROVED DASHBOARD HEADER
   ============================================ */

.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 40%, #f093fb 100%);
    padding: 60px 20px;
    margin-bottom: 0;
    animation: slideInDown 0.6s ease;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotateGradient 20s linear infinite;
    pointer-events: none;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.dashboard-welcome {
    max-width: 1400px;
    margin: 0 auto;
    color: white;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    position: relative;
    z-index: 10;
}

.dashboard-welcome h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 20px 0;
    animation: fadeInUp 0.6s ease 0.2s both;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
    letter-spacing: -1px;
}

.dashboard-welcome h1 i {
    margin-right: 20px;
    font-size: 3.2rem;
    opacity: 0.9;
}

.dashboard-welcome p {
    font-size: 1.3rem;
    opacity: 1;
    margin: 0;
    animation: fadeInUp 0.6s ease 0.4s both;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    letter-spacing: 0.3px;
    margin-top: 10px;
}

/* ============================================
   HEADER STATS MINI
   ============================================ */

.header-quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.6s both;
}

.header-stat {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
}

.header-stat-text h4 {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-stat-text p {
    margin: 5px 0 0 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ============================================
   IMPROVED DASHBOARD STATS CARDS
   ============================================ */

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: -40px auto 50px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 5px solid #667eea;
    animation: fadeInUp 0.6s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    border-radius: 0 0 0 100%;
    pointer-events: none;
}

.stat-card:nth-child(1) {
    animation: fadeInUp 0.6s ease 0s both;
    border-left-color: #667eea;
}

.stat-card:nth-child(2) {
    animation: fadeInUp 0.6s ease 0.1s both;
    border-left-color: #f093fb;
}

.stat-card:nth-child(3) {
    animation: fadeInUp 0.6s ease 0.2s both;
    border-left-color: #4facfe;
}

.stat-card:nth-child(4) {
    animation: fadeInUp 0.6s ease 0.3s both;
    border-left-color: #43e97b;
}

.stat-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 2.8rem;
    margin-bottom: 15px;
    display: inline-block;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin: 15px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 0.98rem;
    color: #888;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   BREADCRUMB & NAVIGATION
   ============================================ */

.dashboard-breadcrumb {
    max-width: 1400px;
    margin: 30px auto 0;
    padding: 0 20px;
    font-size: 0.9rem;
    color: #888;
}

.dashboard-breadcrumb a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.dashboard-breadcrumb a:hover {
    color: #764ba2;
}

.dashboard-breadcrumb span {
    margin: 0 8px;
    color: #ddd;
}

/* ============================================
   SECTION DIVIDER
   ============================================ */

.section-divider {
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, transparent 100%);
    margin: 40px 0;
    max-width: 200px;
}

/* ============================================
   RESPONSIVE IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
    .dashboard-header {
        padding: 40px 20px;
    }

    .dashboard-welcome h1 {
        font-size: 2.2rem;
    }

    .dashboard-welcome p {
        font-size: 1.1rem;
    }

    .header-quick-stats {
        gap: 15px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }
}

/* ============================================
   DARK MODE
   ============================================ */

@media (prefers-color-scheme: dark) {
    .stat-card {
        background: #2a2a2a;
    }

    .stat-number {
        color: #ecf0f1;
    }

    .stat-label {
        color: #aaa;
    }
}
