* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #14532d 0%, #166534 30%, #15803d 70%, #16a34a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 420px;
    padding: 44px 40px 28px;
    animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.login-head {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo {
    margin-bottom: 20px;
}

.login-head h2 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.3px;
    margin-bottom: 6px;
}

.login-head p {
    font-size: 14px;
    color: #6b7280;
}

/* Alert */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 22px;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-icon {
    flex-shrink: 0;
}

/* Fields */
.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.input-wrap input {
    width: 100%;
    padding: 11px 14px 11px 40px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #111827;
    background: #f9fafb;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.input-wrap input:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
    background: #fff;
}

.input-wrap input::placeholder {
    color: #9ca3af;
}

/* Button */
button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #166534, #15803d);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
    margin-top: 4px;
    letter-spacing: 0.3px;
}

button[type="submit"]:hover {
    opacity: 0.92;
    box-shadow: 0 4px 14px rgba(21, 128, 61, 0.35);
}

button[type="submit"]:active {
    transform: scale(0.98);
}

/* Footer */
.copyright {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* ========== HOME PAGE ========== */
body.home-page {
    background: #f0f2f5;
    display: block;
    padding: 0;
    min-height: 100vh;
}

.home-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px;
}

.home-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 16px;
    padding: 20px 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 32px;
}

.home-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.home-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #166534, #15803d);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.home-user h1 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.home-user p {
    font-size: 13px;
    color: #6b7280;
    margin-top: 1px;
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #ef4444;
    box-shadow: none;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.menu-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 14px;
    padding: 22px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #f3f4f6;
}

.menu-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-card span {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    line-height: 1.3;
}

@media (max-width: 600px) {
    .home-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .home-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== REPORT PAGES ========== */
body.report-page {
    background: #f0f2f5;
    display: block;
    padding: 0;
    min-height: 100vh;
}

.report-nav {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.report-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.report-nav-back:hover {
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
}

.report-nav-title {
    font-size: 16px;
    font-weight: 700;
    color: #166534;
    text-align: center;
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.report-nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

.btn-logout-sm {
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 8px;
    color: #6b7280;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}

.btn-logout-sm:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #ef4444;
}

.report-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px 24px;
}

.report-filters {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    margin-bottom: 24px;
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-group label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
}

.filter-group .form-control {
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    padding: 8px 12px;
    background: #f9fafb;
    min-width: 180px;
}

.filter-group .form-control:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22,163,74,0.1);
}

.filter-group .input-group-text {
    background: #166534;
    color: #fff;
    border: none;
    border-radius: 8px 0 0 8px;
    font-size: 13px;
}

.btn-filter {
    background: #166534;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-filter:hover {
    background: #15803d;
}

.btn-reset {
    background: none;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reset:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.report-table-wrap {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .report-nav-title {
        position: static;
        transform: none;
        font-size: 14px;
    }

    .report-nav {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 16px;
        gap: 8px;
    }

    .report-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group .form-control {
        min-width: auto;
    }
}
