﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: #0a0e12;
}

.dashboard {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar-dark {
    width: 280px;
    background: #11161c;
    border-right: 1px solid #1e2a33;
    padding: 30px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.logo-dark {
    padding: 0 25px 30px;
    border-bottom: 1px solid #1e2a33;
}

    .logo-dark h1 {
        font-size: 1.8rem;
        font-weight: 600;
        color: #d4af37;
        letter-spacing: 3px;
    }

    .logo-dark p {
        color: #6b8a9e;
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

.nav-dark {
    padding: 25px 15px;
}

.nav-section {
    margin-bottom: 25px;
}

.nav-section-title {
    color: #4a6577;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0 15px;
    margin-bottom: 15px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    margin: 4px 0;
    border-radius: 10px;
    color: #8da3b5;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

    .nav-link i {
        width: 24px;
        margin-right: 12px;
    }

    .nav-link:hover {
        background: #1a242c;
        color: #d4af37;
    }

    .nav-link.active {
        background: #d4af37;
        color: #0a0e12;
    }

/* Main Content */
.main-dark {
    flex: 1;
    margin-left: 280px;
    padding: 30px 35px;
    background: #0a0e12;
}

/* Header */
.header-dark {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

    .header-dark h2 {
        color: #e8edf2;
        font-size: 1.8rem;
        font-weight: 500;
    }

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.date-display {
    color: #6b8a9e;
    font-size: 0.9rem;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #11161c;
    padding: 8px 16px;
    border-radius: 40px;
    border: 1px solid #1e2a33;
}

.admin-avatar {
    width: 38px;
    height: 38px;
    background: #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0e12;
    font-weight: 700;
}

/* KPI Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 35px;
}

.kpi-card {
    background: #11161c;
    border: 1px solid #1e2a33;
    border-radius: 20px;
    padding: 25px;
}

.kpi-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.kpi-icon {
    width: 50px;
    height: 50px;
    background: #1a242c;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    font-size: 1.4rem;
}

.trend-up {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.kpi-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #e8edf2;
}

.kpi-label {
    color: #6b8a9e;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Charts Row */
.charts-row-dark {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 25px;
    margin-bottom: 35px;
}

.card-dark {
    background: #11161c;
    border: 1px solid #1e2a33;
    border-radius: 20px;
    padding: 25px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

    .card-header h3 {
        color: #e8edf2;
        font-weight: 500;
    }

/* Bar Chart */
.bar-chart-dark {
    padding: 20px 0;
}

.chart-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
}

    .chart-row span {
        width: 100px;
        color: #8da3b5;
        font-size: 0.85rem;
    }

.progress-bar {
    flex: 1;
    height: 8px;
    background: #1e2a33;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
}

    .progress-fill.gold {
        background: #d4af37;
    }

    .progress-fill.blue {
        background: #3b82f6;
    }

    .progress-fill.green {
        background: #22c55e;
    }

    .progress-fill.purple {
        background: #8b5cf6;
    }

.progress-value {
    width: 50px;
    color: #e8edf2;
    font-weight: 600;
}

/* Donut Chart */
.donut-container {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.donut {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: conic-gradient(#d4af37 0deg 200deg, #3b82f6 200deg 290deg, #22c55e 290deg 360deg);
}

/* Orders Table */
.table-dark {
    width: 100%;
    border-collapse: collapse;
}

    .table-dark th {
        text-align: left;
        padding: 15px 0;
        color: #6b8a9e;
        font-weight: 500;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        border-bottom: 1px solid #1e2a33;
    }

    .table-dark td {
        padding: 16px 0;
        color: #c5d3de;
        border-bottom: 1px solid #151d24;
    }

.status-success {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-warning {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Footer */
.footer-dark {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #1e2a33;
    display: flex;
    justify-content: space-between;
    color: #4a6577;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .charts-row-dark {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .sidebar-dark {
        width: 80px;
    }

        .sidebar-dark .logo-dark p, .sidebar-dark .nav-link span, .sidebar-dark .nav-section-title {
            display: none;
        }

        .sidebar-dark .nav-link {
            justify-content: center;
        }

            .sidebar-dark .nav-link i {
                margin-right: 0;
                font-size: 1.3rem;
            }

    .main-dark {
        margin-left: 80px;
    }
}

@media (max-width: 600px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .header-dark {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .main-dark {
        padding: 20px 15px;
    }
}
