
/* =========================================
   🦇 VAMPIRE GOTHIC THEME
   Layanan Service Komputer
========================================= */

:root {
    --merah: #c11235;
    --merah-terang: #ff294f;
    --merah-gelap: #700d22;
    --hitam: #10080d;
    --hitam-2: #1b0b12;
    --hitam-3: #281019;
    --putih: #f8e9ed;
    --abu: #c9aab3;
    --garis: rgba(255, 55, 91, 0.25);
    --bayangan: 0 12px 35px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--putih);
    background:
        radial-gradient(ellipse at top right, rgba(133, 14, 43, 0.38), transparent 42%),
        radial-gradient(ellipse at bottom left, rgba(85, 8, 31, 0.35), transparent 45%),
        linear-gradient(135deg, #080609 0%, #1a090f 45%, #390b19 75%, #10080d 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* 🌙 Hiasan bulan */
body::before {
    content: "🌙";
    position: fixed;
    top: 95px;
    right: 35px;
    font-size: 55px;
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
}

/* 🦇 Header */
header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px 5%;
    color: var(--putih);
    background: linear-gradient(110deg, #10080d, #400b1b, #850e2b);
    border-bottom: 2px solid var(--merah);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.55);
}

header h2 {
    margin: 0;
    font-size: 23px;
    letter-spacing: 1px;
}

header h2::before {
    content: "🦇 ";
}

header a {
    display: inline-block;
    padding: 9px 15px;
    margin-left: 10px;
    color: white;
    background: #6e1028;
    border: 1px solid #d62a4b;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

header a:hover {
    background: #b30f36;
    box-shadow: 0 0 16px rgba(255, 41, 79, 0.4);
    transform: translateY(-2px);
}

/* 🕯️ Area utama */
main {
    width: 94%;
    max-width: 1400px;
    margin: 35px auto;
}

h1 {
    margin-top: 0;
    color: #ffcad5;
    letter-spacing: 0.4px;
}

p {
    line-height: 1.7;
}

/* 🩸 Judul dan tombol */
.judul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.judul h1::before {
    content: "🩸 ";
}

/* 🌹 Tombol umum */
.tombol,
button {
    display: inline-block;
    padding: 12px 20px;
    color: white;
    background: linear-gradient(135deg, #8e0e2b, #d1163f);
    border: 1px solid #f03a5d;
    border-radius: 9px;
    font-family: inherit;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(126, 5, 34, 0.35);
    transition: transform 0.25s, box-shadow 0.25s;
}

.tombol:hover,
button:hover {
    background: linear-gradient(135deg, #b70d37, #f21d4d);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 24, 67, 0.3);
}

/* ⚰️ Kartu */
.card {
    width: 100%;
    max-width: 440px;
    margin: 40px auto;
    padding: 30px;
    background: linear-gradient(145deg, rgba(40, 14, 25, 0.97), rgba(18, 9, 14, 0.97));
    border: 1px solid var(--garis);
    border-top: 3px solid var(--merah);
    border-radius: 16px;
    box-shadow: var(--bayangan);
    animation: gothicAppear 0.65s ease;
}

.form-card {
    max-width: 680px;
}

.card h1 {
    text-align: center;
}

.card h1::before {
    content: "🦇 ";
}

@keyframes gothicAppear {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 🦇 Login */
body.login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    background:
        radial-gradient(circle at 50% 15%, rgba(145, 12, 46, 0.3), transparent 35%),
        linear-gradient(145deg, #080609, #290914, #610b24, #10080d);
}

.login .card {
    max-width: 430px;
    text-align: center;
    border-top: 4px solid #e21b48;
    box-shadow: 0 0 35px rgba(180, 7, 49, 0.16), 0 18px 45px rgba(0, 0, 0, 0.55);
}

.login .card h1 {
    font-size: 27px;
}

.login .card h1::before {
    content: "";
}

.login .card h1::after {
    content: " 🩸";
}

/* 🕸️ Formulir */
label {
    display: block;
    margin: 15px 0 7px;
    color: #f4b5c3;
    font-weight: 700;
}

input,
select,
textarea {
    display: block;
    width: 100%;
    padding: 12px 14px;
    color: var(--putih);
    background: #160b11;
    border: 1px solid #592033;
    border-radius: 9px;
    font: inherit;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}

input::placeholder,
textarea::placeholder {
    color: #a88a94;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #ed3158;
    box-shadow: 0 0 0 3px rgba(237, 49, 88, 0.15);
}

select option {
    background: #1b0b12;
    color: white;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

form button {
    width: 100%;
    margin-top: 20px;
}

form a {
    display: inline-block;
    margin-top: 15px;
    color: #ff9aaf;
    font-weight: bold;
    text-decoration: none;
}

form a:hover {
    color: white;
    text-decoration: underline;
}

/* 🔎 Searching dan filter */
.filter-form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 16px;
    margin: 25px 0 18px;
    padding: 22px;
    background: linear-gradient(145deg, rgba(40, 14, 25, 0.97), rgba(18, 9, 14, 0.97));
    border: 1px solid var(--garis);
    border-top: 2px solid var(--merah);
    border-radius: 14px;
    box-shadow: var(--bayangan);
}

.filter-group {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    margin: 0;
    color: #ffc0d0;
    font-weight: bold;
}

.filter-group input,
.filter-group select {
    width: 100%;
    min-width: 0;
    padding: 12px;
    color: var(--putih);
    background: var(--hitam-2);
    border: 1px solid #592033;
    border-radius: 9px;
    font: inherit;
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: var(--merah-terang);
    box-shadow: 0 0 0 3px rgba(255, 41, 79, 0.15);
    outline: none;
}

.filter-group input::placeholder {
    color: var(--abu);
}

.filter-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.filter-actions button,
.filter-actions .tombol-reset {
    display: inline-block;
    width: auto;
    margin: 0;
    padding: 12px 20px;
    color: white;
    font-family: inherit;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    border: 1px solid #f03a5d;
    border-radius: 9px;
    cursor: pointer;
    transition: 0.25s;
}

.filter-actions button {
    background: linear-gradient(135deg, #8e0e2b, #d1163f);
}

.filter-actions .tombol-reset {
    background: #281019;
    border-color: #70223b;
}

.filter-actions button:hover,
.filter-actions .tombol-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(255, 41, 79, 0.25);
}

.jumlah-data {
    margin: 16px 0;
    color: var(--abu);
}

.jumlah-data strong {
    color: #ff829c;
}

/* 🦇 Tabel data */
.table-container {
    width: 100%;
    overflow-x: auto;
    background: rgba(20, 9, 15, 0.96);
    border: 1px solid #4b1829;
    border-radius: 14px;
    box-shadow: var(--bayangan);
}

table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
}

th,
td {
    padding: 15px 13px;
    text-align: left;
    border-bottom: 1px solid #3d1826;
    font-size: 13px;
}

th {
    color: #fff1f4;
    background: linear-gradient(120deg, #350b19, #8c102e);
    white-space: nowrap;
}

tbody tr {
    background: #180b12;
    transition: background 0.2s;
}

tbody tr:nth-child(even) {
    background: #210d16;
}

tbody tr:hover {
    background: #39101f;
}

td a {
    color: #ff829c;
    font-weight: bold;
    text-decoration: none;
}

td a:hover {
    color: white;
    text-decoration: underline;
}

/* 🩸 Label status service */
.status {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.status-menunggu {
    color: #ffe09a;
    background: #553f16;
    border: 1px solid #806026;
}

.status-diproses {
    color: #a9d6ff;
    background: #173e66;
    border: 1px solid #285d8c;
}

.status-selesai {
    color: #a9f5c8;
    background: #174b35;
    border: 1px solid #26734f;
}

.status-diambil {
    color: #e8c1ff;
    background: #4b285e;
    border: 1px solid #75418f;
}

/* 🩸 Pesan error */
.error {
    padding: 12px;
    color: #ffc0cc;
    background: #390d1c;
    border: 1px solid #8e2340;
    border-radius: 9px;
}

/* ☠️ Tombol hapus */
button.danger {
    background: linear-gradient(135deg, #5c071d, #a60c31);
    border-color: #e02a50;
}

button.danger:hover {
    background: linear-gradient(135deg, #8e0e2b, #e31747);
}

/* 🕯️ Hiasan kelelawar bergerak */
.vampire-bat {
    position: fixed;
    top: -50px;
    z-index: 5;
    font-size: 22px;
    opacity: 0.7;
    pointer-events: none;
    animation: batFall linear forwards;
}

@keyframes batFall {
    0% {
        transform: translateY(-20px) rotate(-15deg);
        opacity: 0;
    }
    15% {
        opacity: 0.7;
    }
    85% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(110vh) rotate(25deg);
        opacity: 0;
    }
}

/* 🌹 Footer */
footer {
    padding: 20px;
    color: #bd8c9b;
    text-align: center;
}

/* 📱 Tablet */
@media (max-width: 1000px) {
    .filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 📱 HP */
@media (max-width: 700px) {
    header {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px 5%;
    }

    header h2 {
        font-size: 20px;
    }

    main {
        width: 92%;
        margin: 25px auto;
    }

    .judul {
        align-items: flex-start;
        flex-direction: column;
    }

    .card {
        padding: 22px;
    }

    .judul h1 {
        font-size: 23px;
    }
}

@media (max-width: 550px) {
    .filter-form {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-actions button,
    .filter-actions .tombol-reset {
        width: 100%;
        text-align: center;
    }
}

/* ♿ Pengaturan aksesibilitas */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
/* ===== PERBAIKAN WARNA TEKS ===== */

body {
    color: #f5eeee;
}

/* Judul halaman */
h1, h2, h3, h4,
.judul,
.card h2,
.form-card h2 {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(220, 20, 60, 0.35);
}

/* Teks biasa dan label */
p,
label,
.filter-group label,
.jumlah-data,
.card,
.form-card {
    color: #f5eeee;
}

/* Teks dalam tabel */
table {
    color: #ffffff;
}

table th {
    color: #ffffff;
    background: #641b2e;
}

table td {
    color: #f5eeee;
}

/* Input dan pilihan */
input,
select,
textarea {
    color: #ffffff;
    background-color: #24151b;
    border: 1px solid #854052;
}

input::placeholder,
textarea::placeholder {
    color: #c9b8bf;
    opacity: 1;
}

/* Tautan */
a {
    color: #ffb6c8;
}

a:hover {
    color: #ffffff;
}

/* Tombol */
button,
.tombol {
    color: #ffffff;
}

/* Status layanan */
.status {
    color: #ffffff;
}

/* Teks yang sebelumnya terlalu gelap */
strong,
b,
td a {
    color: #ffffff;
}


/* =========================================
   BACKGROUND GAMBAR BENGKEL KOMPUTER
   Digunakan di seluruh halaman website
========================================= */

html {
    min-height: 100%;
    background: #090709;
}

body {
    min-height: 100vh;
    background-color: #090709;
    background-image:
        linear-gradient(
            rgba(7, 5, 7, 0.76),
            rgba(7, 5, 7, 0.84)
        ),
        url("Bengkel Komputer Neon Merah.png");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Hilangkan dekorasi bulan dari tema lama */
body::before {
    content: none;
    display: none;
}

/* Background login sebelumnya menimpa gambar utama.
   Aturan ini memastikan gambar tetap tampil di halaman login. */
body.login {
    min-height: 100vh;
    background-color: #090709;
    background-image:
        linear-gradient(
            rgba(7, 5, 7, 0.68),
            rgba(7, 5, 7, 0.78)
        ),
        url("Bengkel Komputer Neon Merah.png");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Panel dibuat sedikit transparan supaya gambar terlihat
   tanpa mengurangi keterbacaan tulisan dan formulir. */
.card,
.filter-form {
    background: rgba(13, 9, 12, 0.88);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.table-container {
    background: rgba(13, 9, 12, 0.91);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

tbody tr {
    background: rgba(24, 11, 18, 0.94);
}

tbody tr:nth-child(even) {
    background: rgba(33, 13, 22, 0.94);
}

header {
    background: rgba(12, 7, 10, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Pada layar kecil, gunakan background tetap agar stabil */
@media (max-width: 700px) {
    body,
    body.login {
        background-attachment: scroll;
        background-position: center center;
    }
}
