* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6f8;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-box {
    width: 100%;
    max-width: 420px;
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.auth-box h1 {
    margin: 0;
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    color: #777;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 7px;
    font-size: 15px;
}

.form-group input:focus {
    outline: none;
    border-color: #555;
}

.auth-button {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 7px;
    background: #222;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.auth-button:hover {
    background: #444;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
}

.auth-link a {
    text-decoration: none;
    font-weight: bold;
}

.message {
    padding: 12px;
    border-radius: 7px;
    margin-bottom: 20px;
}

.message.error {
    background: #ffe5e5;
    color: #b00000;
}

.message.success {
    background: #e5f8e9;
    color: #08752b;
}

.dashboard {
    padding: 40px;
}


/* =========================
   DASHBOARD
========================= */

.dashboard-layout {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 240px;
    background: #222;
    color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.sidebar-logo {
    font-size: 22px;
    font-weight: bold;
    padding: 25px 20px;
    border-bottom: 1px solid #444;
}

.sidebar-menu {
    padding: 20px 10px;
    flex: 1;
}

.sidebar-menu a {
    display: block;
    color: #ccc;
    text-decoration: none;
    padding: 13px 15px;
    margin-bottom: 5px;
    border-radius: 7px;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #444;
    color: white;
}

.sidebar-bottom {
    padding: 20px;
    border-top: 1px solid #444;
}

.admin-name {
    margin-bottom: 12px;
    font-weight: bold;
}

.sidebar-bottom a {
    color: #ccc;
    text-decoration: none;
}

.dashboard-main {
    flex: 1;
    padding: 35px;
    background: #f4f6f8;
}

.dashboard-header {
    margin-bottom: 30px;
}

.dashboard-header h1 {
    margin: 0 0 8px;
}

.dashboard-header p {
    color: #777;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

.dashboard-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.card-title {
    color: #777;
    margin-bottom: 12px;
}

.card-value {
    font-size: 28px;
    font-weight: bold;
}

.dashboard-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.dashboard-section h2 {
    margin-top: 0;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    border: 1px solid #eee;
    border-radius: 8px;
    text-decoration: none;
    color: #222;
}

.quick-action:hover {
    background: #f7f7f7;
}

.quick-action > span {
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #eee;
    border-radius: 8px;
    font-size: 22px;
}

.quick-action strong,
.quick-action small {
    display: block;
}

.quick-action small {
    color: #777;
    margin-top: 4px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header a {
    text-decoration: none;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #777;
}

.primary-button {
    display: inline-block;
    background: #222;
    color: white;
    padding: 12px 20px;
    border-radius: 7px;
    text-decoration: none;
    margin-top: 10px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 650px) {

    .sidebar {
        width: 190px;
    }

    .dashboard-main {
        padding: 20px;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
    }

}


