* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f4f7fb;

    color: #172033;
}


/* =================================
   LOGIN
================================= */

.login-screen {

    min-height: 100vh;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 25px;

    background:
        linear-gradient(
            135deg,
            #eff6ff,
            #f8fafc
        );
}


.login-box {

    width: 100%;

    max-width: 430px;

    padding: 42px;

    background: white;

    border-radius: 18px;

    box-shadow:
        0 20px 60px
        rgba(15, 23, 42, 0.12);
}


.login-logo {

    font-size: 28px;

    font-weight: 800;

    margin-bottom: 22px;
}


.login-logo span {

    color: #2563eb;
}


.admin-badge {

    display: inline-block;

    padding: 6px 10px;

    margin-bottom: 18px;

    border-radius: 6px;

    background: #eff6ff;

    color: #2563eb;

    font-size: 11px;

    font-weight: bold;

    letter-spacing: 1.5px;
}


.login-box h1 {

    color: #0f172a;

    font-size: 31px;

    margin-bottom: 9px;
}


.login-description {

    color: #64748b;

    line-height: 1.6;

    margin-bottom: 25px;
}


.form-group {

    display: flex;

    flex-direction: column;

    margin-bottom: 18px;
}


.form-group label {

    color: #334155;

    font-weight: 600;

    margin-bottom: 8px;
}


.form-group input {

    padding: 13px 14px;

    border:
        1px solid #cbd5e1;

    border-radius: 8px;

    outline: none;

    font-size: 15px;
}


.form-group input:focus {

    border-color: #2563eb;

    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, 0.1);
}


.login-button {

    width: 100%;

    padding: 14px;

    margin-top: 5px;

    border: none;

    border-radius: 8px;

    background: #2563eb;

    color: white;

    font-size: 15px;

    font-weight: bold;

    cursor: pointer;
}


.login-button:hover {

    background: #1d4ed8;
}


.login-button:disabled {

    opacity: 0.6;

    cursor: not-allowed;
}


.login-error {

    display: none;

    margin-top: 16px;

    padding: 12px;

    border-radius: 8px;

    background: #fef2f2;

    color: #b91c1c;

    font-size: 14px;

    line-height: 1.5;

    text-align: center;
}


.back-link {

    display: block;

    margin-top: 25px;

    text-align: center;

    text-decoration: none;

    color: #2563eb;

    font-weight: 600;
}


/* =================================
   DASHBOARD
================================= */

.dashboard {

    display: none;

    min-height: 100vh;
}


/* =================================
   NAVBAR
================================= */

.admin-navbar {

    min-height: 70px;

    padding: 0 6%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: #0f172a;

    color: white;
}


.navbar-logo {

    font-size: 24px;

    font-weight: 800;
}


.navbar-logo span {

    color: #60a5fa;
}


.navbar-logo small {

    display: inline-block;

    margin-left: 8px;

    padding: 4px 7px;

    border-radius: 5px;

    background: #2563eb;

    font-size: 9px;

    letter-spacing: 1px;

    vertical-align: middle;
}


.navbar-actions {

    display: flex;

    align-items: center;

    gap: 18px;
}


.navbar-actions a {

    color: #cbd5e1;

    text-decoration: none;

    font-weight: 600;
}


.navbar-actions a:hover {

    color: white;
}


.logout-button {

    padding: 9px 15px;

    border: none;

    border-radius: 7px;

    background: #ef4444;

    color: white;

    font-weight: bold;

    cursor: pointer;
}


/* =================================
   MAIN
================================= */

.dashboard-main {

    width: 92%;

    max-width: 1200px;

    margin: auto;

    padding: 50px 0 80px;
}


.dashboard-header {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 35px;
}


.eyebrow {

    color: #2563eb;

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 2px;

    margin-bottom: 8px;
}


.dashboard-header h1 {

    color: #0f172a;

    font-size: 38px;

    margin-bottom: 8px;
}


.dashboard-description {

    color: #64748b;
}


.refresh-button {

    padding: 10px 16px;

    border:
        1px solid #cbd5e1;

    border-radius: 8px;

    background: white;

    color: #334155;

    font-weight: bold;

    cursor: pointer;
}


.refresh-button:hover {

    background: #f8fafc;
}


/* =================================
   STATS
================================= */

.stats {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;

    margin-bottom: 30px;
}


.stat-card {

    padding: 25px;

    border-radius: 13px;

    background: white;

    box-shadow:
        0 4px 18px
        rgba(15, 23, 42, 0.06);
}


.stat-card p {

    color: #64748b;

    font-size: 14px;

    margin-bottom: 9px;
}


.stat-card h2 {

    color: #0f172a;

    font-size: 34px;
}


.pending-card {

    border-top:
        4px solid #f97316;
}


.progress-card {

    border-top:
        4px solid #2563eb;
}


.resolved-card {

    border-top:
        4px solid #10b981;
}


/* =================================
   VIEW SELECTOR
================================= */

.view-selector {

    display: flex;

    gap: 10px;

    margin-bottom: 18px;
}


.view-button {

    padding: 11px 18px;

    border:
        1px solid #cbd5e1;

    border-radius: 8px;

    background: white;

    color: #475569;

    font-weight: bold;

    cursor: pointer;
}


.view-button.selected {

    border-color: #2563eb;

    background: #2563eb;

    color: white;
}


/* =================================
   MANAGEMENT
================================= */

.management {

    padding: 25px;

    border-radius: 14px;

    background: white;

    box-shadow:
        0 4px 20px
        rgba(15, 23, 42, 0.05);
}


.management-header {

    display: grid;

    grid-template-columns:
        1fr 200px;

    gap: 15px;

    margin-bottom: 25px;
}


.management-header input,
.management-header select {

    padding: 12px 13px;

    border:
        1px solid #cbd5e1;

    border-radius: 8px;

    outline: none;

    font-size: 14px;

    background: white;
}


.management-header input:focus,
.management-header select:focus {

    border-color: #2563eb;
}


/* =================================
   LOADING
================================= */

.loading-message {

    padding: 40px;

    text-align: center;

    color: #64748b;
}


/* =================================
   COMPLAINT CARD
================================= */

.admin-card {

    padding: 24px;

    margin-bottom: 17px;

    border:
        1px solid #e2e8f0;

    border-radius: 12px;

    background: white;
}


.card-top {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 18px;
}


.complaint-id {

    color: #2563eb;

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 0.5px;

    margin-bottom: 7px;
}


.admin-card h3 {

    color: #0f172a;

    font-size: 21px;
}


.details {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 11px;

    margin-bottom: 17px;

    color: #64748b;

    font-size: 14px;
}


.details strong {

    color: #475569;
}


.description {

    padding: 15px;

    margin-bottom: 18px;

    border-radius: 8px;

    background: #f8fafc;

    color: #475569;

    line-height: 1.6;
}


/* =================================
   STATUS
================================= */

.status {

    height: fit-content;

    padding: 8px 13px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: bold;

    white-space: nowrap;
}


.status-pending {

    background: #fff7ed;

    color: #c2410c;
}


.status-progress {

    background: #eff6ff;

    color: #1d4ed8;
}


.status-resolved {

    background: #ecfdf5;

    color: #047857;
}


/* =================================
   ACTIONS
================================= */

.actions {

    display: flex;

    align-items: center;

    gap: 10px;

    padding-top: 17px;

    border-top:
        1px solid #e2e8f0;
}


.actions select {

    min-width: 160px;

    padding: 10px;

    border:
        1px solid #cbd5e1;

    border-radius: 7px;

    background: white;
}


.archive-button {

    padding: 10px 15px;

    border: none;

    border-radius: 7px;

    background: #fef3c7;

    color: #92400e;

    font-weight: bold;

    cursor: pointer;
}


.archive-button:hover {

    background: #fde68a;
}


.restore-button {

    padding: 10px 15px;

    border: none;

    border-radius: 7px;

    background: #dbeafe;

    color: #1d4ed8;

    font-weight: bold;

    cursor: pointer;
}


.restore-button:hover {

    background: #bfdbfe;
}


.archive-information {

    padding: 11px;

    margin-top: 14px;

    border-radius: 7px;

    background: #f8fafc;

    color: #64748b;

    font-size: 13px;

    line-height: 1.5;
}


/* =================================
   EMPTY / ERROR
================================= */

.empty-state {

    padding: 50px 20px;

    text-align: center;

    color: #64748b;
}


.empty-state h3 {

    color: #334155;

    margin-bottom: 8px;
}


.dashboard-error {

    padding: 25px;

    border-radius: 10px;

    background: #fef2f2;

    color: #b91c1c;

    line-height: 1.6;
}


/* =================================
   MOBILE
================================= */

@media (max-width: 800px) {

    .stats {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .management-header {

        grid-template-columns:
            1fr;

    }


    .details {

        grid-template-columns:
            1fr;

    }


    .dashboard-header {

        flex-direction: column;

        align-items: flex-start;

    }

}


@media (max-width: 600px) {

    .login-box {

        padding: 30px 22px;

    }


    .admin-navbar {

        padding: 15px 4%;

    }


    .navbar-actions a {

        display: none;

    }


    .stats {

        grid-template-columns:
            1fr;

    }


    .card-top {

        flex-direction: column;

    }


    .actions {

        flex-direction: column;

        align-items: stretch;

    }


    .actions select {

        width: 100%;

    }


    .view-selector {

        flex-direction: column;

    }

}