body{margin:0;background:#eef2f7;color:#222;font-family:Arial,Helvetica,sans-serif}.wrapper{max-width:1180px;margin:25px auto;padding:0 15px}.login-wrapper{max-width:440px;margin:55px auto;padding:0 15px}.login-card,.card{background:#fff;border:1px solid #d7dce3;border-radius:10px;padding:18px;margin-bottom:18px;box-shadow:0 2px 7px rgba(0,0,0,.06)}.event-card{border:1px solid #d7dce3;border-radius:10px;padding:15px;margin-bottom:18px;background:#fbfcfe}.header{background:#154f86;color:#fff;padding:22px;border-radius:10px;margin-bottom:18px}.header h1{margin:0 0 8px 0}.header p{margin:0}h1,h2,h3{margin-top:0}label{display:block;font-weight:bold;margin-top:11px}input[type=text],input[type=password],input[type=date],input[type=email],input[type=number],input[type=file],textarea,select{width:100%;box-sizing:border-box;padding:9px;border:1px solid #bfc7d1;border-radius:6px;margin-top:4px;font-size:14px}textarea{min-height:76px}button,.btn{display:inline-block;border:none;background:#1466ad;color:#fff;padding:9px 12px;border-radius:6px;text-decoration:none;cursor:pointer;font-size:13px;margin:3px 2px}.btn-green{background:#16824a}.btn-orange{background:#c86512}.btn-red{background:#b82020}.btn-gray{background:#555}.btn-purple{background:#6f3bbd}.table{width:100%;border-collapse:collapse;margin-top:12px;background:#fff}.table th,.table td{border:1px solid #c9ced6;padding:8px;vertical-align:top;font-size:13px}.table th{background:#e7edf5}.alert{padding:11px;border-radius:6px;margin-bottom:12px}.alert-success{background:#e8f8ee;border:1px solid #9bcfae}.alert-error{background:#fdeaea;border:1px solid #dca7a7}.small{color:#666;font-size:12px}.daily-row{background:#f6f8fb;border:1px solid #d7dce3;border-radius:8px;padding:10px;margin-bottom:8px}.qr-cell{text-align:center}.qr-img{width:82px;height:82px}hr{border:none;border-top:1px solid #ddd;margin:18px 0}@media print{body{background:#fff}.btn{display:none}}


/* =========================================================
   REVISI FINAL HALAMAN LOGIN
   Tengah layar, lebar sekitar 1/3 desktop, tetap proporsional di HP.
   ========================================================= */
body.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2f7;
}

body.login-page .login-wrapper {
    width: 33.33vw;
    max-width: 460px;
    min-width: 360px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

body.login-page .login-card {
    width: 100%;
    box-sizing: border-box;
}

@media screen and (max-width: 900px) {
    body.login-page .login-wrapper {
        width: 70vw;
        min-width: 0;
    }
}

@media screen and (max-width: 600px) {
    body.login-page {
        align-items: flex-start;
        padding-top: 30px;
    }

    body.login-page .login-wrapper {
        width: 94vw;
        min-width: 0;
        padding: 10px;
    }
}


/* =========================================================
   LOGIN TENGAH LAYAR DAN RESPONSIF
   ========================================================= */
body.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2f7;
}

body.login-page .login-wrapper {
    width: 33.33vw;
    max-width: 460px;
    min-width: 360px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

body.login-page .login-card {
    width: 100%;
    box-sizing: border-box;
}

@media screen and (max-width: 900px) {
    body.login-page .login-wrapper {
        width: 70vw;
        min-width: 0;
    }
}

@media screen and (max-width: 600px) {
    body.login-page {
        align-items: flex-start;
        padding-top: 30px;
    }

    body.login-page .login-wrapper {
        width: 94vw;
        min-width: 0;
        padding: 10px;
    }
}


/* =========================================================
   MENU UTAMA LEBIH RAPI DAN MENARIK
   ========================================================= */
.menu-panel h2 {
    margin-top: 0;
    margin-bottom: 14px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}

.menu-card {
    display: block;
    text-decoration: none;
    background: linear-gradient(180deg, #ffffff, #f7f9fc);
    border: 1px solid #d9e2ef;
    border-radius: 14px;
    padding: 16px;
    color: #1f2937;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.menu-card:hover {
    transform: translateY(-2px);
    border-color: #7aa7ff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.10);
}

.menu-card strong {
    display: block;
    font-size: 15px;
    margin-bottom: 5px;
}

.menu-card small {
    display: block;
    color: #64748b;
    line-height: 1.35;
}

.menu-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    background: #eef4ff;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 18px;
}

.logout-card {
    background: linear-gradient(180deg, #fff7f7, #fff1f1);
    border-color: #ffd2d2;
}

.event-card {
    border: 1px solid #e1e7f0;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 18px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.event-card h3 {
    margin-top: 0;
    color: #0f3d70;
}

.laporan-actions {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 14px;
    margin-top: 14px;
}

@media screen and (max-width: 600px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }

    .menu-card {
        padding: 14px;
    }
}


/* =========================================================
   FINAL UI CLEANUP - MENU DAN TOMBOL SELURUH APLIKASI
   ========================================================= */
:root {
    --primary: #145a96;
    --primary-dark: #0f3d70;
    --secondary: #6f3bbd;
    --success: #16824a;
    --warning: #c86512;
    --danger: #b82020;
    --muted: #64748b;
    --border: #d9e2ef;
    --soft: #f8fafc;
}

body {
    background:
        radial-gradient(circle at top left, rgba(20, 90, 150, .10), transparent 35%),
        linear-gradient(180deg, #eef4fb, #f7f9fc);
}

.wrapper {
    max-width: 1220px;
}

.header {
    background: linear-gradient(135deg, #0f3d70, #1769aa);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(15, 61, 112, .18);
}

.header h1 {
    letter-spacing: .1px;
}

.card,
.login-card {
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
}

.card h2 {
    color: #0f3d70;
    border-bottom: 1px solid #e5edf6;
    padding-bottom: 10px;
    margin-bottom: 14px;
}

button,
.btn {
    border-radius: 10px;
    padding: 9px 13px;
    font-weight: 600;
    letter-spacing: .1px;
    box-shadow: 0 3px 8px rgba(15, 23, 42, .08);
    transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

button:hover,
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, .12);
    opacity: .96;
}

.btn-gray {
    background: #475569;
}

.btn-green {
    background: #15803d;
}

.btn-orange {
    background: #c2410c;
}

.btn-purple {
    background: #6d28d9;
}

.btn-red {
    background: #b91c1c;
}

.action-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.action-toolbar .btn {
    margin: 0;
}

.action-toolbar::before {
    content: "Menu Halaman";
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 10px;
    background: #eef4ff;
    color: #0f3d70;
    font-size: 12px;
    font-weight: 700;
    margin-right: 4px;
}

.page-info {
    background: linear-gradient(180deg, #ffffff, #f9fbff);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
}

.info-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    padding: 10px 12px;
}

.info-item strong {
    display: block;
    color: #0f3d70;
    margin-bottom: 4px;
}

.menu-panel {
    background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.menu-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.menu-card {
    position: relative;
    overflow: hidden;
    min-height: 92px;
}

.menu-card::after {
    content: "";
    position: absolute;
    right: -20px;
    top: -20px;
    width: 78px;
    height: 78px;
    background: rgba(20, 90, 150, .08);
    border-radius: 50%;
}

.menu-card strong,
.menu-card small,
.menu-card span {
    position: relative;
    z-index: 1;
}

.menu-icon {
    background: linear-gradient(135deg, #e7f0ff, #eef8ff);
}

.role-tabs,
.tab-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.role-tabs .btn,
.tab-menu .btn {
    margin: 0;
}

.table {
    border-radius: 12px;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #d5dde8;
}

.table th {
    background: linear-gradient(180deg, #eaf1fb, #dde8f6);
    color: #0f3d70;
    font-weight: 700;
}

.table th,
.table td {
    border: 0;
    border-bottom: 1px solid #e2e8f0;
}

.table tr:last-child td {
    border-bottom: 0;
}

.table tr:hover td {
    background: #fbfdff;
}

.event-card {
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.event-card h3 {
    padding-bottom: 10px;
    border-bottom: 1px solid #e5edf6;
}

.laporan-actions {
    display: block;
    background: #f8fafc;
}

.laporan-actions .btn {
    margin-bottom: 6px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

input[type=text],
input[type=password],
input[type=date],
input[type=email],
input[type=number],
input[type=file],
textarea,
select {
    border-radius: 10px;
    border-color: #cbd5e1;
    background: #ffffff;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, .18);
}

.alert {
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .05);
}

.login-card h1 {
    color: #0f3d70;
}

@media screen and (max-width: 700px) {
    .wrapper {
        margin: 12px auto;
        padding: 0 10px;
    }

    .header {
        padding: 18px;
        border-radius: 14px;
    }

    .header h1 {
        font-size: 20px;
        line-height: 1.25;
    }

    .card {
        padding: 14px;
    }

    .action-toolbar {
        display: grid;
        grid-template-columns: 1fr;
    }

    .action-toolbar::before {
        margin-right: 0;
        justify-content: center;
    }

    .action-toolbar .btn,
    .btn,
    button {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

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

@media print {
    .action-toolbar,
    .menu-panel,
    .btn,
    button {
        display: none !important;
    }
}
