/* =========================================================
   SUARA RAKYAT
   UNIVERSAL STYLE
   Warna Identitas:
   MERAH • EMAS • HITAM • ABU-ABU • PUTIH
   ========================================================= */


/* =========================================================
   DASAR
   ========================================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;

    font-family: Arial, sans-serif;

    background:
        linear-gradient(
            135deg,
            #111111 0%,
            #242424 45%,
            #3a3a3a 100%
        );

    color: #222;

    min-height: 100vh;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: 94%;
    max-width: 720px;

    margin: 0 auto;

    padding: 15px 0 35px;
}


/* =========================================================
   HEADER UTAMA
   ========================================================= */

.header {
    position: relative;

    background:
        linear-gradient(
            135deg,
            #8b0000,
            #b30000 55%,
            #660000
        );

    color: white;

    text-align: center;

    padding: 22px 15px;

    margin-bottom: 15px;

    border-radius: 0 0 22px 22px;

    border-bottom: 3px solid #d4af37;

    box-shadow:
        0 6px 18px rgba(0,0,0,.45);
}

.header::after {
    content: "";

    position: absolute;

    left: 15%;
    right: 15%;
    bottom: -3px;

    height: 3px;

    background: #f1c40f;

    box-shadow:
        0 0 10px #f1c40f;
}

.header h1 {
    margin: 0;

    font-size: 21px;

    letter-spacing: 1px;

    font-weight: 800;
}

.header p {
    margin: 7px 0 0;

    font-size: 11px;

    color: #f5f5f5;
}


/* =========================================================
   STATUS HEADER
   ========================================================= */

.status {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    margin-top: 10px;

    padding: 5px 10px;

    border-radius: 20px;

    background: rgba(0,0,0,.30);

    border: 1px solid #d4af37;

    color: #ffd95a;

    font-size: 9px;

    font-weight: bold;

    letter-spacing: .5px;
}

.dot {
    width: 7px;
    height: 7px;

    background: #f1c40f;

    border-radius: 50%;

    box-shadow:
        0 0 8px #f1c40f;
}


/* =========================================================
   CARD UNIVERSAL
   ========================================================= */

.card {
    background: #ffffff;

    padding: 16px;

    margin-bottom: 14px;

    border-radius: 17px;

    border: 1px solid #dddddd;

    box-shadow:
        0 4px 12px rgba(0,0,0,.28);

    position: relative;

    overflow: hidden;
}

.card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            #8b0000,
            #d4af37,
            #8b0000
        );
}


/* =========================================================
   JUDUL CARD
   ========================================================= */

.card h2,
.card h3 {
    margin-top: 4px;

    color: #8b0000;
}

.card-title {
    font-size: 14px;

    font-weight: bold;

    color: #8b0000;

    margin-bottom: 8px;
}


/* =========================================================
   LABEL
   ========================================================= */

.label {
    display: block;

    margin-bottom: 6px;

    font-size: 10px;

    font-weight: bold;

    color: #444;

    text-transform: uppercase;

    letter-spacing: .3px;
}


/* =========================================================
   INPUT
   ========================================================= */

input,
textarea,
select {
    width: 100%;

    padding: 11px 12px;

    border-radius: 10px;

    border: 1px solid #cccccc;

    background: #f8f8f8;

    color: #222;

    font-family: Arial, sans-serif;

    font-size: 11px;

    outline: none;

    transition: .2s;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #b30000;

    background: #ffffff;

    box-shadow:
        0 0 0 2px rgba(179,0,0,.12);
}

input::placeholder,
textarea::placeholder {
    color: #999;
}


/* =========================================================
   SELECT
   ========================================================= */

.select-dark {
    background: #252525;

    color: #ffffff;

    border: 1px solid #555;
}

.select-dark:focus {
    border-color: #d4af37;
}

select option {
    background: #ffffff;

    color: #222;
}


/* =========================================================
   TOMBOL UTAMA
   ========================================================= */

button,
.btn-login,
.btn-add,
.btn-small,
.action-btn {
    font-family: Arial, sans-serif;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform .15s,
        box-shadow .15s,
        opacity .15s;
}

button:hover,
.btn-login:hover,
.btn-add:hover,
.btn-small:hover,
.action-btn:hover {
    transform: translateY(-1px);
}


/* =========================================================
   LOGIN / TOMBOL MERAH EMAS
   ========================================================= */

.btn-login {
    width: 100%;

    display: block;

    border: none;

    border-radius: 12px;

    padding: 12px;

    background:
        linear-gradient(
            135deg,
            #8b0000,
            #c00000
        );

    color: #ffffff;

    font-size: 11px;

    font-weight: bold;

    letter-spacing: .8px;

    box-shadow:
        0 4px 10px rgba(139,0,0,.35);
}

.btn-login:hover {
    box-shadow:
        0 5px 15px rgba(139,0,0,.5);
}


/* =========================================================
   TOMBOL TAMBAH
   ========================================================= */

.btn-add {
    display: block;

    width: 100%;

    text-align: center;

    padding: 11px;

    margin-bottom: 12px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #d4af37,
            #f1c40f
        );

    color: #171717;

    font-size: 10px;

    font-weight: bold;

    border: 1px solid #b89625;

    box-shadow:
        0 4px 10px rgba(0,0,0,.25);
}


/* =========================================================
   TOMBOL KECIL
   ========================================================= */

.btn-small {
    border: none;

    padding: 10px 15px;

    border-radius: 9px;

    background: #222222;

    color: #ffffff;

    font-size: 9px;

    font-weight: bold;
}


/* =========================================================
   SEARCH
   ========================================================= */

.search-form {
    display: flex;

    gap: 7px;

    align-items: center;
}

.search-form input {
    flex: 1;
}

.search-form button {
    flex-shrink: 0;
}


/* =========================================================
   USER CARD
   ========================================================= */

.user-card {
    padding: 14px;
}

.user-top {
    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 10px;
}

.user-name {
    font-size: 13px;

    font-weight: bold;

    color: #222;
}

.user-role {
    margin-top: 4px;

    font-size: 8px;

    color: #8b0000;

    font-weight: bold;

    letter-spacing: .5px;
}

.user-info {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    margin-top: 10px;
}

.user-info span {
    background: #eeeeee;

    color: #555;

    padding: 5px 7px;

    border-radius: 7px;

    font-size: 8px;
}


/* =========================================================
   BADGE
   ========================================================= */

.badge {
    display: inline-block;

    padding: 4px 7px;

    border-radius: 20px;

    font-size: 7px;

    font-weight: bold;

    margin-left: 2px;

    margin-bottom: 3px;
}

.badge.aktif {
    background: #eeeeee;

    color: #8b0000;

    border: 1px solid #cccccc;
}

.badge.online {
    background: #222222;

    color: #f1c40f;

    border: 1px solid #d4af37;
}

.badge.offline {
    background: #eeeeee;

    color: #777777;
}

.badge.nonaktif {
    background: #eeeeee;

    color: #555555;
}

.badge.blokir {
    background: #8b0000;

    color: white;
}


/* =========================================================
   ACTION BUTTON
   ========================================================= */

.user-actions {
    display: flex;

    gap: 7px;

    margin-top: 12px;
}

.action-btn {
    flex: 1;

    text-align: center;

    padding: 8px;

    border-radius: 9px;

    background: #222222;

    color: #ffffff;

    font-size: 8px;

    font-weight: bold;
}

.action-btn.danger {
    background: #8b0000;
}


/* =========================================================
   JUMLAH DATA
   ========================================================= */

.user-count {
    color: #ffffff;

    background: #222222;

    border-left: 4px solid #d4af37;

    padding: 9px 12px;

    margin-bottom: 12px;

    border-radius: 8px;

    font-size: 9px;
}

.user-count b {
    color: #f1c40f;
}


/* =========================================================
   LINK KEMBALI
   ========================================================= */

.back-link {
    display: inline-block;

    color: #f1c40f;

    font-size: 10px;

    font-weight: bold;

    text-decoration: none;

    padding: 8px 10px;

    border-radius: 8px;

    background: #222222;

    border: 1px solid #444;
}

.back-link:hover {
    color: #ffffff;

    border-color: #d4af37;
}


/* =========================================================
   PESAN ERROR
   ========================================================= */

.error,
.alert-error {
    background: #fff1f1;

    color: #8b0000;

    border-left: 4px solid #b30000;

    border-top: 1px solid #f0cccc;

    border-right: 1px solid #f0cccc;

    border-bottom: 1px solid #f0cccc;

    padding: 10px;

    margin-bottom: 12px;

    border-radius: 9px;

    font-size: 10px;

    font-weight: bold;
}


/* =========================================================
   PESAN SUKSES
   ========================================================= */

.success,
.alert-success {
    background: #fffbea;

    color: #6b5200;

    border-left: 4px solid #d4af37;

    border-top: 1px solid #ead99a;

    border-right: 1px solid #ead99a;

    border-bottom: 1px solid #ead99a;

    padding: 10px;

    margin-bottom: 12px;

    border-radius: 9px;

    font-size: 10px;

    font-weight: bold;
}


/* =========================================================
   TEKS BANTUAN
   ========================================================= */

.help-text {
    color: #777;

    font-size: 9px;

    line-height: 1.5;
}


/* =========================================================
   PEMBATAS
   ========================================================= */

hr {
    border: 0;

    border-top: 1px solid #dddddd;

    margin: 14px 0;
}


/* =========================================================
   TABEL
   ========================================================= */

table {
    width: 100%;

    border-collapse: collapse;

    font-size: 9px;

    background: white;
}

th {
    background: #222222;

    color: #f1c40f;

    padding: 9px;

    text-align: left;
}

td {
    padding: 8px;

    border-bottom: 1px solid #dddddd;

    color: #444;
}

tr:hover td {
    background: #fffaf0;
}


/* =========================================================
   MENU GRID
   Untuk Dashboard Super dan halaman lainnya
   ========================================================= */

.menu-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 10px;
}

.menu-card {
    display: block;

    text-decoration: none;

    background: #ffffff;

    color: #222;

    padding: 14px 10px;

    border-radius: 14px;

    border: 1px solid #dddddd;

    border-top: 3px solid #8b0000;

    box-shadow:
        0 3px 9px rgba(0,0,0,.25);

    text-align: center;

    transition: .2s;
}

.menu-card:hover {
    transform: translateY(-2px);

    border-top-color: #d4af37;

    box-shadow:
        0 6px 14px rgba(0,0,0,.3);
}

.menu-icon {
    font-size: 24px;

    margin-bottom: 6px;
}

.menu-title {
    font-size: 10px;

    font-weight: bold;

    color: #8b0000;
}

.menu-desc {
    font-size: 8px;

    color: #777;

    margin-top: 4px;

    line-height: 1.3;
}


/* =========================================================
   RESPONSIVE HP
   ========================================================= */

@media (max-width: 480px) {

    .container {
        width: 94%;

        padding-top: 8px;
    }

    .header {
        padding: 19px 12px;
    }

    .header h1 {
        font-size: 18px;
    }

    .header p {
        font-size: 10px;
    }

    .card {
        padding: 13px;
    }

    .menu-grid {
        gap: 8px;
    }

    .menu-card {
        padding: 12px 7px;
    }

    .menu-icon {
        font-size: 21px;
    }

    .menu-title {
        font-size: 9px;
    }

    .menu-desc {
        font-size: 7px;
    }
}


/* =========================================================
   TABLET / PC
   ========================================================= */

@media (min-width: 700px) {

    .container {
        max-width: 820px;

        padding-top: 25px;
    }

    .menu-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }
}