﻿* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    min-height: 100vh;
    color: #1e293b;
}

header {
    background: #1d4ed8;
    color: white;
    text-align: center;
    padding: 22px;
    font-size: 30px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.main-nav {
    background: #1e3a8a;
    padding: 14px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

    .main-nav a,
    .main-nav button {
        text-decoration: none;
        color: white;
        background: #2563eb;
        border: none;
        padding: 10px 16px;
        border-radius: 10px;
        font-weight: bold;
        cursor: pointer;
        transition: 0.2s ease;
    }

        .main-nav a:hover,
        .main-nav button:hover {
            background: #1d4ed8;
            transform: translateY(-1px);
        }

.container {
    max-width: 1200px;
    margin: 35px auto;
    padding: 0 20px 30px;
}

.card {
    background: white;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    margin-bottom: 24px;
}

    .card h1,
    .card h2,
    .card h3 {
        margin-top: 0;
        color: #1e3a8a;
    }

.subtitle {
    color: #64748b;
    margin-bottom: 22px;
}

.grid {
    display: grid;
    gap: 18px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 7px;
    font-weight: bold;
    color: #334155;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
}

    input:focus,
    select:focus,
    textarea:focus {
        outline: none;
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
    }

button {
    padding: 12px 18px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s ease;
}

    button:hover {
        background: #1d4ed8;
    }

.btn-secondary {
    background: #475569;
}

    .btn-secondary:hover {
        background: #334155;
    }

.btn-warning {
    background: #d97706;
}

    .btn-warning:hover {
        background: #b45309;
    }

.btn-danger {
    background: #dc2626;
}

    .btn-danger:hover {
        background: #b91c1c;
    }

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.message {
    display: none;
    margin-bottom: 18px;
    padding: 14px;
    border-radius: 12px;
    font-weight: bold;
}

.success {
    display: block;
    background: #dcfce7;
    color: #166534;
}

.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
}

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 90px);
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 430px;
    background: white;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

    .login-card h2 {
        margin-top: 0;
        text-align: center;
        margin-bottom: 22px;
        color: #1e3a8a;
    }

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.dashboard-option {
    display: block;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 22px;
    text-decoration: none;
    color: #1e293b;
    transition: 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

    .dashboard-option:hover {
        transform: translateY(-3px);
        background: #dbeafe;
        box-shadow: 0 8px 18px rgba(0,0,0,0.10);
    }

    .dashboard-option h3 {
        margin-top: 0;
        margin-bottom: 10px;
        color: #1d4ed8;
        font-size: 20px;
    }

    .dashboard-option p {
        margin: 0;
        color: #475569;
        line-height: 1.5;
    }

table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 14px;
    background: white;
}

    table th,
    table td {
        border: 1px solid #e5e7eb;
        padding: 12px;
        text-align: left;
        vertical-align: top;
        font-size: 14px;
    }

    table th {
        background: #dbeafe;
        color: #1e3a8a;
    }

.table-wrapper {
    overflow-x: auto;
}

.section-title {
    margin-top: 5px;
    margin-bottom: 15px;
    color: #1d4ed8;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
    background: #dbeafe;
    color: #1d4ed8;
}

@media (max-width: 900px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .main-nav {
        justify-content: flex-start;
    }
}
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.dashboard-badge {
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: bold;
    padding: 12px 18px;
    border-radius: 14px;
    white-space: nowrap;
}

.menu-section {
    margin-bottom: 28px;
}

.menu-section-title {
    margin: 0 0 14px 4px;
    color: #1e3a8a;
    font-size: 24px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.dashboard-option {
    display: block;
    background: white;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    padding: 24px;
    text-decoration: none;
    color: #1e293b;
    transition: 0.25s ease;
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

    .dashboard-option:hover {
        transform: translateY(-4px);
        background: #eff6ff;
        box-shadow: 0 12px 22px rgba(0,0,0,0.10);
    }

.dashboard-icon {
    font-size: 34px;
    margin-bottom: 12px;
}

.dashboard-option h3 {
    margin: 0 0 10px;
    color: #1d4ed8;
    font-size: 22px;
}

.dashboard-option p {
    margin: 0;
    color: #475569;
    line-height: 1.5;
}

.quick-info h2 {
    margin-top: 0;
    color: #1e3a8a;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

    .quick-links a {
        text-decoration: none;
        background: #2563eb;
        color: white;
        padding: 10px 16px;
        border-radius: 10px;
        font-weight: bold;
        transition: 0.2s ease;
    }

        .quick-links a:hover {
            background: #1d4ed8;
        }

@media (max-width: 850px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-badge {
        white-space: normal;
    }
}

.dashboard-body {
    margin: 0;
    background: #eef4fb;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 270px;
    height: 100vh;
    background: linear-gradient(180deg, #1e3a8a, #1d4ed8);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 26px 20px;
    box-shadow: 4px 0 18px rgba(0,0,0,0.12);
    z-index: 1000;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.sidebar-logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255,255,255,0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.sidebar-brand h2 {
    margin: 0;
    font-size: 22px;
    color: white;
}

.sidebar-brand p {
    margin: 2px 0 0 0;
    font-size: 13px;
    color: #dbeafe;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-link {
    display: block;
    text-decoration: none;
    color: white;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: bold;
    transition: 0.2s ease;
    background: rgba(255,255,255,0.06);
}

    .sidebar-link:hover {
        background: rgba(255,255,255,0.16);
        transform: translateX(4px);
    }

    .sidebar-link.active {
        background: white;
        color: #1d4ed8;
    }

.sidebar-footer {
    margin-top: 25px;
}

.sidebar-logout {
    width: 100%;
    background: #ef4444;
    color: white;
    border: none;
    padding: 13px;
    border-radius: 14px;
    font-weight: bold;
    cursor: pointer;
}

    .sidebar-logout:hover {
        background: #dc2626;
    }

.main-content {
    margin-left: 270px;
    padding: 32px;
}

.hero-dashboard {
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    border-radius: 24px;
    padding: 34px;
    box-shadow: 0 14px 32px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 28px;
}

.hero-pill {
    display: inline-block;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: bold;
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.hero-dashboard h1 {
    margin: 0 0 12px 0;
    font-size: 42px;
    color: #1e3a8a;
}

.hero-dashboard p {
    margin: 0;
    color: #64748b;
    font-size: 18px;
    line-height: 1.5;
    max-width: 700px;
}

.hero-cards {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-mini-card {
    min-width: 150px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    padding: 20px;
    text-align: center;
}

    .hero-mini-card strong {
        display: block;
        font-size: 30px;
        color: #1d4ed8;
        margin-bottom: 6px;
    }

    .hero-mini-card span {
        color: #475569;
        font-weight: bold;
        font-size: 14px;
    }

.dashboard-section {
    margin-bottom: 30px;
}

.section-header {
    margin-bottom: 16px;
}

    .section-header h2 {
        margin: 0 0 6px 0;
        font-size: 28px;
        color: #1e3a8a;
    }

    .section-header p {
        margin: 0;
        color: #64748b;
        font-size: 16px;
    }

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.module-card {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    border-radius: 22px;
    padding: 24px;
    color: #1e293b;
    background: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: 0.25s ease;
    border: 1px solid transparent;
}

    .module-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 28px rgba(0,0,0,0.12);
    }

.module-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    background: rgba(255,255,255,0.35);
    flex-shrink: 0;
}

.module-content h3 {
    margin: 0 0 8px 0;
    font-size: 22px;
}

.module-tag {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: bold;
    background: rgba(255,255,255,0.45);
}

.module-blue {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-color: #93c5fd;
}

    .module-blue .module-content h3,
    .module-blue .module-tag {
        color: #1d4ed8;
    }

.module-cyan {
    background: linear-gradient(135deg, #cffafe, #a5f3fc);
    border-color: #67e8f9;
}

    .module-cyan .module-content h3,
    .module-cyan .module-tag {
        color: #0f766e;
    }

.module-indigo {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    border-color: #a5b4fc;
}

    .module-indigo .module-content h3,
    .module-indigo .module-tag {
        color: #4338ca;
    }

.module-gold {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #fcd34d;
}

    .module-gold .module-content h3,
    .module-gold .module-tag {
        color: #b45309;
    }

.module-red {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-color: #fca5a5;
}

    .module-red .module-content h3,
    .module-red .module-tag {
        color: #b91c1c;
    }

@media (max-width: 1050px) {
    .hero-dashboard {
        flex-direction: column;
        align-items: flex-start;
    }

        .hero-dashboard h1 {
            font-size: 34px;
        }

        .hero-dashboard p {
            font-size: 16px;
        }
}

@media (max-width: 900px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-radius: 0 0 20px 20px;
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }
}