* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

body {
    background: linear-gradient(180deg, #f4f6ff, #fde7f3);
    color: #1f2937;
}

/* HERO */
.hero {
    position: relative;
    background: linear-gradient(135deg, #4f46e5, #9333ea);
    color: white;
    padding: 44px 24px 60px;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
}

.hero h1 {
    font-size: 26px;
    margin-bottom: 8px;
}

.hero p {
    opacity: 0.9;
    line-height: 1.6;
}

/* CONTAINER */
.container {
    max-width: 520px;
    margin: -50px auto 40px;
    padding: 0 16px;
}

/* CARD */
.card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.card .card {
    box-shadow: none;
    border-radius: 16px;
}

/* FORM */
label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
}

input, textarea, select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    margin-bottom: 16px;
    font-size: 14px;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #6366f1;
}

/* BUTTON */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6, #9333ea);
    color: white;
    padding: 14px;
    border-radius: 16px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.18);
}

/* LINK */
a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

/* BADGE */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.badge-tinggi {
    background: #fee2e2;
    color: #dc2626;
}

.badge-sedang {
    background: #fef3c7;
    color: #d97706;
}

.badge-rendah {
    background: #dcfce7;
    color: #16a34a;
}

/* INFO */
.info {
    background: #f1f5f9;
    border-radius: 14px;
    padding: 12px;
    font-size: 13px;
    margin-bottom: 10px;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 30px 16px;
    font-size: 13px;
    color: #6b7280;
}
/* ===== ADMIN FIX ===== */

.admin-container {
    margin-top: 24px; /* hentikan efek ketiban hero */
}

.admin-hero {
    padding-bottom: 40px; /* hero admin lebih pendek & rapi */
}

/* ===== ADMIN FIX – ANTI KETIBAN HERO ===== */

.admin-container {
    margin-top: 24px; /* hentikan efek naik ke hero */
}

.admin-hero {
    padding-bottom: 40px; /* hero admin lebih pendek */
}

.admin-complaint {
    margin-bottom: 28px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-action {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-top: 14px;
}

.admin-action select {
    margin-bottom: 0;
}

/* ==============================
   TENANT – ANTI KETIBAN HERO
============================== */

/* container tenant tetap melayang */
.tenant-container {
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

/* kasih ruang aman dari hero */
.hero + .tenant-container::before {
    content: "";
    display: block;
    height: 50px;
}
/* ===== LOGIN PAGE ===== */

.login-container {
    margin-top: -40px;
    max-width: 420px;
}

.login-card {
    text-align: center;
}

.login-card input {
    text-align: left;
}

/* ===== LOGIN CHARACTER ===== */

.character {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.face {
    width: 120px;
    height: 120px;
    background: #fde68a;
    border-radius: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
}

.eye {
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.pupil {
    width: 10px;
    height: 10px;
    background: #111827;
    border-radius: 50%;
    position: absolute;
    top: 7px;
    left: 7px;
    transition: transform 0.08s linear;
}
.admin-face { background: #c4b5fd; }
.tenant-face { background: #fde68a; }
.petugas-face { background: #bfdbfe; }

