/**
 * SolidLife MLM - Premium Dashboard Styles (V2 Attractive)
 */

.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: #fdfdfd;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ===== Sidebar (Deep Green/Gold Theme) ===== */
.dashboard-sidebar {
    width: 280px;
    background: linear-gradient(160deg, #022c22 0%, #064e3b 60%, #0f172a 100%);
    color: white;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-logo {
    padding: 2.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-logo img {
    height: 48px;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.sidebar-logo span {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.sidebar-nav {
    padding: 2rem 1.5rem;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-group-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.6);
    letter-spacing: 0.1em;
    margin: 1.5rem 0 0.5rem 1rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid transparent;
}

.nav-item svg {
    opacity: 0.7;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transform: translateX(4px);
    border-color: rgba(255, 255, 255, 0.1);
}

.nav-item:hover svg {
    opacity: 1;
    transform: scale(1.1);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(6, 78, 59, 0.4) 100%);
    color: #ffffff;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

.nav-item.active svg {
    color: #d4af37;
    opacity: 1;
}

/* ===== Main Content ===== */
.dashboard-main {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    background-image:
        radial-gradient(at 0% 0%, rgba(6, 78, 59, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(212, 175, 55, 0.03) 0px, transparent 50%);
}

.dashboard-header {
    height: 90px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3rem;
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.dashboard-content {
    padding: 3rem;
    max-width: 1800px;
    margin: 0 auto;
    width: 100%;
}

/* ===== Stats Cards V2 ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.1);
}

.stat-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    position: relative;
    overflow: hidden;
}

.stat-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background: currentColor;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.02em;
}

/* Specific Card Colors */
.stat-card.gold .stat-icon-wrapper {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
}

.stat-card.green .stat-icon-wrapper {
    color: #059669;
    background: rgba(5, 150, 105, 0.1);
}

.stat-card.blue .stat-icon-wrapper {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
}

.stat-card.purple .stat-icon-wrapper {
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.1);
}

/* ===== Glass Charts & Tables ===== */
.glass-panel {
    background: white;
    border-radius: 32px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.table-container {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: none;
    border: 1px solid #f1f5f9;
}

.table th {
    background: #f8fafc;
    padding: 1.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
}

.table td {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 0.95rem;
}

.table tr:hover td {
    background: #f8fafc;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
        width: 0;
    }

    .dashboard-main {
        margin-left: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-content {
        padding: 1.5rem;
    }
}