
/* ==============================
   1. DASHBOARD CONTAINER
============================== */

.dashboard-container {
    width: 100%;
    max-width: 1200px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 32px;
    align-self: flex-start;
}

/* ==============================
   2. DASHBOARD HEADER
============================== */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.dashboard-brand {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 8px;
}

.dashboard-title {
    color: var(--primary);
    font-size: 28px;
}

.logout-button {
    min-height: 42px;
    padding: 11px 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: white;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.logout-button:hover {
    background-color: var(--background);
    border-color: var(--primary);
}

.logout-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==============================
   3. WELCOME SECTION
============================== */

.dashboard-welcome {
    padding: 24px;
    margin-bottom: 28px;
    background: var(--primary);
    color: white;
    border-radius: 16px;
}

.dashboard-welcome h2 {
    font-size: 21px;
    margin-bottom: 8px;
}

.dashboard-welcome p {
    font-size: 14px;
    opacity: 0.85;
}

/* ==============================
   4. STATISTICS GRID
============================== */

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.stat-card {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.05);
}

.stat-label {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 14px;
}

.stat-value {
    color: var(--primary);
    font-size: 26px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* ==============================
   5. DASHBOARD NAVIGATION
============================== */

.dashboard-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.dashboard-navigation button {
    min-height: 44px;
    padding: 0 20px;
    border: none;
    border-radius: 10px;
    background-color: var(--primary);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dashboard-navigation button:hover {
    background-color: var(--primary-hover);
}

.dashboard-navigation button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==============================
   6. DASHBOARD ERROR
============================== */

.dashboard-error {
    margin-top: 20px;
    padding: 12px 16px;
    color: var(--danger);
    background-color: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 10px;
    font-size: 14px;
    display: none;
}

.dashboard-error:not(:empty) {
    display: block;
}

/* ==============================
   7. RESPONSIVE
============================== */

@media (min-width: 768px) {
    .dashboard-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .dashboard-container {
        padding: 20px 16px;
    }

    .dashboard-header {
        margin-bottom: 24px;
    }

    .dashboard-title {
        font-size: 24px;
    }

    .dashboard-welcome {
        padding: 20px;
    }

    .dashboard-stats {
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 22px;
    }

    .logout-button {
        padding: 10px 12px;
    }

    .dashboard-navigation {
        flex-direction: column;
    }

    .dashboard-navigation button {
        width: 100%;
    }
}

@media (max-width: 360px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}
