body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    min-height: 100vh;
    margin: 0;
}

.container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
}

h2 {
    color: #2c3e50;
    margin-top: 0;
    text-align: center;
    margin-bottom: 20px;
}

hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 30px 0;
}

/* Pengaturan */
.settings-box {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.setting-item label {
    font-weight: 500;
}
.setting-item input[type="number"] {
    width: 60px;
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
}

/* Form */
#formParkir label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 15px;
}

#formParkir input[type="text"],
#formParkir input[type="date"],
#formParkir select,
#formParkir textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Penting agar padding tidak menambah width */
    font-size: 1rem;
}

#formParkir input:focus,
#formParkir select:focus,
#formParkir textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.25);
}

.status-container {
    margin-top: 20px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.status-container label {
    margin: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.status-container input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.hidden {
    display: none;
}

#keteranganBox {
    margin-top: 10px;
}

button {
    width: 100%;
    padding: 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 25px;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0056b3;
}

#terapkanPengaturan {
    background-color: #28a745;
    margin-top: 10px;
}

#terapkanPengaturan:hover {
    background-color: #218838;
}
/* ... (semua kode CSS dari sebelumnya tetap ada) ... */

/* TAMBAHAN & PERUBAHAN PADA CSS */
.lokasi-container {
    display: flex;
    gap: 20px; /* Jarak antar dropdown */
    width: 100%;
}

.lokasi-item {
    flex: 1; /* Membuat kedua item memiliki lebar yang sama */
}

select:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}
/* TAMBAHKAN STYLE INI DI BAGIAN AKHIR FILE CSS ANDA */

.alert-text {
    color: #dc3545; /* Warna merah untuk peringatan */
    font-size: 0.875em;
    margin-top: 5px;
    font-weight: bold;
}

/* Ingat, .hidden sudah ada dari sebelumnya */
/* .hidden { display: none; } */

/* Style untuk tombol saat disabled */
button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.65;
}

/* ... (sisa kode CSS dari sebelumnya tetap ada) ... */

/* TAMBAHAN STYLE BARU */
body {
    align-items: flex-start; /* Ubah dari center ke flex-start */
}

/* GANTI BLOK KODE LAMA ANDA DENGAN YANG BARU INI */

.main-container {
    display: flex;
    gap: 30px;
    width: 100%;
    /* BARU: Agar kedua kolom berada di tengah halaman */
    justify-content: center; 
    align-items: flex-start;
}

.info-container {
    /* DIUBAH: Diberi lebar tetap 400px dan tidak akan membesar/mengecil */
    flex: 0 0 400px; 
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-container {
    /* DIUBAH: Diberi lebar maksimal agar tidak ikut membesar */
    width: 100%;
    max-width: 550px; 
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* GANTI KODE LAMA ANDA DENGAN YANG BARU INI */

.info-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);

    /* --- PERUBAHAN UTAMA DIMULAI DARI SINI --- */
    display: grid; /* Mengaktifkan CSS Grid */
    grid-template-columns: auto 1fr; /* Membuat 2 kolom: 1 untuk label, 1 untuk nilai */
    align-items: center; /* Membuat item sejajar secara vertikal */
    gap: 8px 15px; /* Jarak antar baris dan antar kolom */
}

.info-card h2 {
    grid-column: 1 / -1; /* Membuat judul memakan lebar 2 kolom */
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
    color: #007bff;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.info-item {
    /* "display: contents" membuat anak dari .info-item (yaitu <span> dan <strong>)
       dianggap sebagai anak langsung dari .info-card, sehingga mereka masuk ke dalam grid */
    display: contents;
}

/* Membuat semua nilai (anak kedua dari .info-item) menjadi rata kanan */
.info-item > :nth-child(2) {
    justify-self: end;
}

/* Wrapper untuk nopol dan tombol */
.copy-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-ok { color: #28a745 !important; }
.status-ng { color: #dc3545 !important; }

#pilihBlokStatistik {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 15px;
}

.statistik-hasil p {
    margin: 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}
.export-button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #17a2b8;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.export-button:hover {
    background-color: #138496;
}
/* === STYLE UNTUK HALAMAN DENAH === */
.layout-page-container {
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.layout-page-container h1 {
    text-align: center;
    color: #007bff;
    margin-bottom: 30px;
}

.pilihan-layout-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.pilihan-item {
    flex: 1;
    max-width: 300px;
}

.pilihan-item label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.pilihan-item select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.denah-parkir-container {
    border: 2px solid #e9ecef;
    padding: 20px;
    border-radius: 8px;
    min-height: 150px;
}

.denah-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 2fr; /* 5 kolom */
    gap: 10px;
    text-align: center;
    font-weight: bold;
    
    /* === TAMBAHKAN 3 BARIS DI BAWAH INI === */
    border-bottom: 2px solid #e9ecef; /* Membuat garis pemisah abu-abu */
    padding-bottom: 20px;             /* Memberi jarak antara denah dengan garis */
    margin-bottom: 20px;              /* Memberi jarak antara satu denah dengan denah berikutnya */
}

.denah-grid > div {
    padding: 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slot-blok {
    background-color: #ffc107; /* Kuning */
    color: #333;
    grid-row: span 2; /* Membuat blok ini mencakup 2 baris */
    grid-column: 3;
    font-size: 1.5em;
}

.slot-baris {
    background-color: #e9ecef;
    color: #495057;
}

.slot-nopol.terisi {
    background-color: #28a745; /* Hijau */
    color: white;
}

.slot-nopol.kosong {
    background-color: #f8f9fa;
    color: #adb5bd;
    font-style: italic;
}

/* === STYLE UNTUK HALAMAN PENCARIAN (cari.html) === */
.search-page-container {
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.search-box input[type="search"] {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.2em;
    border-radius: 8px;
    border: 2px solid #ccc;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box input[type="search"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.25);
}

.search-results-container {
    margin-top: 25px;
}

.result-item {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Penting untuk mobile */
    gap: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.result-nopol {
    font-size: 1.1em;
    font-weight: bold;
    color: #343a40;
}

.result-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.result-lokasi {
    font-weight: 600;
    color: #007bff;
}

.result-waktu {
    font-size: 0.85em;
    color: #6c757d;
}

.placeholder-text {
    text-align: center;
    color: #6c757d;
    font-size: 1.1em;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

/* Penyesuaian untuk mobile */
@media (max-width: 600px) {
    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .result-details {
        align-items: flex-start;
        text-align: left;
        margin-top: 5px;
    }
}

/* Style untuk Pilihan Status Unit */
.status-unit-container {
    display: flex;
    gap: 20px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.status-unit-container label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
}

/* Style untuk radio button yang disabled */
.status-unit-container label.disabled {
    color: #adb5bd;
    cursor: not-allowed;
}
/* Hapus atau ubah style lama untuk #lastNopol */
#lastNopol {
    cursor: default; /* Kembalikan kursor ke normal */
    /* Hapus properti :hover jika ada */
}

/* Hapus juga style untuk #lastNopol.copied */
#lastNopol.copied {
    /* Hapus semua style di sini */
}


/* === TAMBAHKAN STYLE BARU DI AKHIR FILE === */

/* Wrapper untuk nopol dan tombol */
.copy-wrapper {
    display: flex;
    align-items: center;
    gap: 8px; /* Jarak antara teks dan tombol */
}

/* Tombol copy */
.copy-button {
    background: #f0f2f5;
    border: 1px solid #dcdcdc;
    border-radius: 5px;
    padding: 2px 6px;
    cursor: pointer;
    font-size: 0.9em;
    line-height: 1;
    transition: background-color 0.2s;
}

.copy-button:hover {
    background-color: #e2e6ea;
}

.copy-button.copied {
    background-color: #d4edda; /* Hijau saat berhasil copy */
    border-color: #c3e6cb;
}
.filter-container {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}
/* === STYLE UNTUK HALAMAN EDIT (edit.html) === */
.edit-page-container {
    width: 100%;
    max-width: 700px;
    margin: 40px auto;
}

.search-card, .edit-card {
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.search-card h2, .edit-card h2 {
    text-align: center;
    margin-top: 0;
    color: #343a40;
}

#searchInputEdit {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    box-sizing: border-box;
}
#searchInputEdit:focus {
    border-color: #007bff;
    outline: none;
}

#searchResultWrapper {
    margin-top: 20px;
    min-height: 50px;
}

.result-summary {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.result-summary-info strong {
    font-size: 1.2em;
    color: #007bff;
    display: block;
}

.result-summary-info span {
    font-size: 0.9em;
    color: #6c757d;
}

.result-summary button {
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    background-color: #ffc107;
    border: none;
    border-radius: 5px;
    color: #212529;
}
.result-summary button:hover {
    background-color: #e0a800;
}
/* === STYLE RESPONSIVE UNTUK HALAMAN PDI (MOBILE) === */
@media screen and (max-width: 768px) {
    
    .pdi-table {
        border: none; /* Hapus border utama tabel */
    }

    /* Sembunyikan header tabel di mobile, karena label akan kita pindah */
    .pdi-table thead {
        display: none;
    }

    .pdi-table tr {
        display: block; /* Ubah baris menjadi seperti kartu */
        border: 1px solid #ddd;
        border-radius: 8px;
        margin-bottom: 15px;
        padding: 10px;
    }

    /* ...DENGAN KODE BARU INI */
    .pdi-table td {
        display: flex; /* 1. Ubah sel menjadi flex container */
        justify-content: space-between; /* 2. Dorong label dan nilai ke sisi berlawanan */
        align-items: center; /* 3. Sejajarkan secara vertikal */
        text-align: right;
        padding: 10px 5px; /* Sedikit penyesuaian padding */
        border-bottom: 1px solid #f0f0f0; /* Garis tipis pemisah antar data */
        border-top: none; /* Hapus sisa border */
    }

    /* Hapus garis pemisah di data paling bawah dalam satu kartu */
    .pdi-table td:last-child {
        border-bottom: none;
    }

    .pdi-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #333;
        text-align: left; /* Pastikan label rata kiri */
        padding-right: 15px; /* Jarak antara label dan nilai */
    }
}
/* === STYLE BARU UNTUK HALAMAN CHECK FISIK (check_fisik.html) === */
.check-page-body {
    background-color: #e9ecef; /* Warna latar belakang halaman */
}

.check-container {
    max-width: 500px;
    margin: 20px auto;
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.wizard-step {
    width: 100%;
}

.wizard-step h2 {
    text-align: center;
    color: #343a40;
    margin-bottom: 25px;
}

#reader {
    width: 100%;
    border: 3px solid #f1f1f1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.result-display {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 20px;
    border-radius: 8px;
}

.result-display .info-item {
    font-size: 1.1em;
}

#checkOptionsContainer {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

#checkOptionsContainer h3 {
    margin-top: 0;
    text-align: center;
    color: #495057;
}

.check-options {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.check-options label {
    display: block;
    padding: 15px 25px;
    border: 2px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    transition: all 0.2s ease;
    flex: 1;
}

.check-options input[type="radio"] {
    display: none; /* Sembunyikan radio button asli */
}

/* Style saat radio button dipilih */
.check-options input[type="radio"]:checked + label {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

#confirmation-area {
    margin-top: 25px;
    text-align: center;
}

#confirmation-area button {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
}

.success-message {
    text-align: center;
    padding: 30px;
}
.success-message .icon {
    font-size: 4em;
    color: #28a745;
}
.success-message h3 {
    color: #28a745;
}
/* === STYLE BARU UNTUK HALAMAN STATUS UNIT === */
.status-page-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.status-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
}

.status-header h1 {
    margin: 0;
}

.status-actions {
    display: flex;
    gap: 10px;
}

#statusSearchInput {
    width: 100%;
    max-width: 350px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Pewarnaan baris tabel berdasarkan status */
.status-table tbody tr.status-IN_PORT { background-color: #fff3cd; }
.status-table tbody tr.status-IN_RVDC { background-color: #d1ecf1; }
.status-table tbody tr.status-WDP { background-color: #d4edda; }

/* Style responsive untuk tabel status di mobile */
@media screen and (max-width: 992px) {
    .status-table thead { display: none; }
    .status-table tr { 
        display: block; 
        margin-bottom: 15px; 
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px;
    }
    .status-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 8px 5px;
        border-bottom: 1px solid #f0f0f0;
    }
    .status-table td:last-child { border-bottom: none; }
    .status-table td::before {
        content: attr(data-label);
        font-weight: bold;
        text-align: left;
        padding-right: 15px;
        color: #333;
    }
}
/* === GAYA BARU UNTUK DASHBOARD STATUS UNIT (LEBIH RAPI) === */
.status-page-container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 15px;
}

.status-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}
.status-header h1 { margin: 0; }
.status-actions { display: flex; gap: 10px; }

.stats-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.filter-card, .table-card, .stats-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
}

.filter-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.stats-card h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
    color: #007bff;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
}

#statsContainer .stat-card {
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    box-shadow: none;
}
#statsContainer .stat-card:last-child {
    margin-bottom: 0;
}

.table-container {
    overflow-x: auto;
}
/* === STYLE BARU UNTUK SEMUA FORM INPUT & DROPDOWN === */

/* Gaya dasar untuk semua textbox, searchbox, date, select, dan textarea */
input[type="text"],
input[type="search"],
input[type="date"],
select,
textarea {
    display: block;
    width: 100%;
    padding: 12px 15px; /* Padding internal agar tidak sempit */
    font-size: 1rem;
    font-family: inherit; /* Menggunakan font yang sama dengan body */
    color: #212529;
    background-color: #fff;
    border: 2px solid #dee2e6; /* Border lebih tebal dan lembut */
    border-radius: 8px; /* Sudut lebih bulat */
    box-sizing: border-box;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Hapus style default untuk select di beberapa browser */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Efek saat input di-klik (focus) */
input[type="text"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    outline: none; /* Hapus outline default */
    border-color: #80bdff; /* Warna border biru */
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.25); /* Efek glow */
}

/* Gaya untuk dropdown yang dinonaktifkan (disabled) */
select:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

/* Gaya untuk label form agar konsisten */
label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 15px;
}
/* === STYLE AGAR TABEL DETAIL MANIFEST TIDAK WRAP === */

/* Pastikan container tabel bisa di-scroll secara horizontal */
.table-container {
    overflow-x: auto;
}

/* Aturan utama untuk mencegah teks turun baris */
.status-table th,
.status-table td {
    white-space: nowrap; /* Mencegah teks turun ke baris baru */
    min-width: 160px;    /* Beri lebar minimal untuk setiap kolom agar tidak terlalu sempit */
}

/* Beri lebar lebih untuk kolom yang isinya panjang */
.status-table th:nth-child(1), .status-table td:nth-child(1) { /* Kolom Nomor Rangka */
    min-width: 200px;
}
.status-table th:nth-child(2), .status-table td:nth-child(2) { /* Kolom Model */
    min-width: 180px;
}
/* === GAYA BARU UNTUK MENU UTAMA (index.php) === */

/* Header */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 15px 20px; /* Padding disesuaikan untuk mobile */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    font-size: 1.4em;
    color: #007bff;
    margin: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9em;
}
.user-info span {
    display: none; /* Sembunyikan nama di mobile agar ringkas */
}

.logout-button {
    background-color: #dc3545;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s;
}
.logout-button:hover {
    background-color: #c82333;
}

/* Konten Menu */
.menu-wrapper {
    max-width: 1200px;
    margin: 25px auto;
    padding: 15px;
}

.welcome-message {
    text-align: center;
    margin-bottom: 30px;
}
.welcome-message h2 {
    font-size: 2em;
    margin-bottom: 5px;
}
.welcome-message p {
    color: #6c757d;
}

.menu-grid-responsive {
    display: grid;
    grid-template-columns: 1fr; /* Default 1 kolom untuk mobile */
    gap: 15px;
}

.menu-item {
    background-color: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 25px rgba(0,0,0,0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    padding: 20px;
}

.menu-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.menu-item-icon {
    font-size: 2em;
    margin-right: 20px;
    background-color: #f0f2f5;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.menu-item-content h3 {
    margin: 0 0 4px 0;
    font-size: 1.1em;
    color: #343a40;
}

.menu-item-content p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.5;
    color: #6c757d;
}

.menu-item-arrow {
    margin-left: auto;
    font-size: 1.5em;
    color: #ccc;
}

/* Tampilan untuk layar lebih besar (Tablet & Desktop) */
@media (min-width: 768px) {
    .main-header {
        padding: 15px 30px;
    }
    .user-info span {
        display: inline; /* Tampilkan kembali nama di layar besar */
    }
    .menu-grid-responsive {
        grid-template-columns: repeat(2, 1fr); /* 2 kolom di tablet */
        gap: 25px;
    }
}

@media (min-width: 1024px) {
    .menu-grid-responsive {
        grid-template-columns: repeat(3, 1fr); /* 3 kolom di desktop */
    }
}
/* === Style untuk Tabel Status (main_stock.php) dengan Border === */
.status-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.9em;
    min-width: 600px; /* Agar tidak terlalu sempit di layar kecil */
}

.status-table th,
.status-table td {
    padding: 10px 12px;
    border: 1px solid #dee2e6; /* Warna border abu-abu muda */
    text-align: left;
}

.status-table th {
    background-color: #f8f9fa; /* Warna latar belakang header */
    font-weight: bold;
}

.status-table tbody tr:nth-child(even) {
    background-color: #f2f2f2; /* Warna latar belakang baris genap */
}

.status-table td:last-child {
    white-space: nowrap; /* Mencegah tombol aksi pindah baris */
}

/* Style untuk label di mobile (jika ada) */
@media (max-width: 768px) {
    .status-table th {
        display: none; /* Sembunyikan header di layar kecil */
    }
    .status-table td {
        display: block;
        width: 100%;
        border-bottom: 1px solid #dee2e6;
        text-align: right;
        padding-left: 50%;
        position: relative;
    }
    .status-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 15px;
        font-weight: bold;
        text-align: left;
    }
}
/* === STYLE UNTUK INPUT PASSWORD === */

input[type="password"] {
    display: block;
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    font-family: inherit;
    color: #212529;
    background-color: #fff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Efek saat input password di-klik (focus) */
input[type="password"]:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.25);
}
/* === GAYA BARU UNTUK MENU UTAMA (index.php) === */

/* * PERBAIKAN 1: Tambahkan style khusus untuk body halaman menu.
 * Ini akan memastikan navbar dan menu tidak terpengaruh oleh style halaman lain.
 * Pastikan di file index.php Anda, tag body memiliki class="menu-page-body"
*/
body.menu-page-body {
    display: block; /* Meng-override style flexbox dari halaman lain */
    background-color: #f4f7f6;
    margin: 0;
    padding: 0;
}

/* Navbar (Header) */
.main-navbar {
    background-color: #fff;
    color: #333;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Navbar akan otomatis 100% width karena ini defaultnya */
}

.navbar-content {
    max-width: 1400px;
    margin: 0 auto; /* Membuat konten di dalam navbar menjadi center */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.5em;
    font-weight: bold;
    color: #007bff;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9em;
}
.user-info span {
    display: none; /* Sembunyikan nama di mobile agar ringkas */
}

.logout-button {
    background-color: #f8f9fa;
    color: #dc3545;
    border: 1px solid #dc3545;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s;
}
.logout-button:hover {
    background-color: #dc3545;
    color: white;
}

/* Konten Menu */
.menu-wrapper {
    max-width: 1200px;
    margin: 40px auto; /* ## PERBAIKAN 2: 'auto' akan membuat menu di tengah ## */
    padding: 15px;
}

.welcome-message {
    text-align: center;
    margin-bottom: 40px;
}
.welcome-message h2 {
    font-size: 2.2em;
    margin-bottom: 5px;
}
.welcome-message p {
    color: #6c757d;
    font-size: 1.1em;
}

.menu-grid-responsive {
    display: grid;
    grid-template-columns: 1fr; /* Default 1 kolom untuk mobile */
    gap: 20px;
}

.menu-item {
    background-color: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 25px rgba(0,0,0,0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.menu-item-icon {
    font-size: 2em;
    margin-right: 20px;
    background-color: #f0f2f5;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.menu-item-content h3 {
    margin: 0 0 4px 0;
    font-size: 1.1em;
    color: #343a40;
}

.menu-item-content p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.5;
    color: #6c757d;
}

.menu-item-arrow {
    margin-left: auto;
    font-size: 1.5em;
    color: #ccc;
    transition: transform 0.2s;
}
.menu-item:hover .menu-item-arrow {
    transform: translateX(5px);
}

/* Tampilan untuk layar lebih besar (Tablet & Desktop) */
@media (min-width: 768px) {
    .main-navbar {
        padding: 15px 30px;
    }
    .user-info span {
        display: inline; /* Tampilkan kembali nama di layar besar */
    }
    .menu-grid-responsive {
        grid-template-columns: repeat(2, 1fr); /* 2 kolom di tablet */
        gap: 25px;
    }
}

@media (min-width: 1024px) {
    .menu-grid-responsive {
        grid-template-columns: repeat(3, 1fr); /* 3 kolom di desktop */
    }
}
/* === GAYA BARU UNTUK HALAMAN MANIFEST (manifest_list.php) === */

.manifest-grid {
    display: grid;
    /* Membuat kolom kartu yang responsif */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.manifest-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.07);
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.manifest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.manifest-card-header {
    padding: 15px 20px;
    background-color: #343a40;
    color: white;
    font-weight: bold;
    font-size: 1.2em;
    border-radius: 11px 11px 0 0; /* Disesuaikan dengan border-radius induk */
}

.manifest-card-body {
    padding: 20px;
    flex-grow: 1;
    display: grid;
    grid-template-columns: max-content 1fr; /* Kolom label & nilai */
    gap: 12px 15px;
    align-items: center;
}

.manifest-card-body span {
    color: #6c757d;
    font-weight: 500;
}
.manifest-card-body strong,
.manifest-card-body input[type="date"] {
    justify-self: end; /* Membuat nilai rata kanan */
    text-align: right;
    font-weight: 600;
    color: #212529;
}
.tgl-tiba-input {
    border: 1px solid #ced4da;
    padding: 5px 8px;
    border-radius: 5px;
}
.tgl-tiba-input.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    transition: all 0.2s;
}

.manifest-card-actions {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 11px 11px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.manifest-card-actions .export-button {
    padding: 8px 15px;
    font-size: 0.9em;
}
.btn-hapus {
    background-color: #f8f9fa;
    color: #dc3545;
    border: 1px solid #dc3545;
}
.btn-hapus:hover {
    background-color: #dc3545;
    color: white;
}
