/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary: #000000;
    /* Hitam Sesuai Logo LanteTiga */
    --primary-light: #e9f5f0;
    /* Hijau Pudar untuk Nuansa Ramadhan */
    --primary-hover: #444444;
    --accent: #d4a373;
    /* Emas/Kayu */
    --bg: #f8f9fa;
    /* Background Halaman */
    --white: #ffffff;
    --text: #212529;
    --text-muted: #6c757d;
    --border: #e9ecef;
    --radius: 12px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
    /* Hilangkan highlight biru di Android saat tap */
}

body {
    background-color: var(--bg);
    color: var(--text);
    padding: 20px 15px;
    line-height: 1.5;
    font-size: 14px;
    /* Base font size untuk mobile */
}

.container {
    max-width: 600px;
    /* Lebar ideal baca di tablet/desktop */
    margin: 0 auto;
    padding-bottom: 100px;
    /* Tambahan padding agar konten tidak tertutup sticky footer */
}

/* =========================================
   2. HEADER
   ========================================= */
.header {
    text-align: center;
    margin-bottom: 25px;
}

/* PENGATURAN LOGO BARU */
.logo {
    max-width: 250px;
    /* Batasi lebar maksimal agar tidak raksasa */
    width: 100%;
    /* Agar responsif di layar sangat kecil */
    height: auto;
    /* Jaga rasio gambar */
    margin: 0 auto 5px auto;
    /* Tengah secara horizontal & jarak bawah */
    display: block;
    /* Pastikan img berperilaku sebagai block element agar margin auto jalan */
    border-radius: 4px;
    /* Opsional: Sedikit rounded biar manis */
}

.header h1 {
    font-size: 1.75rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.highlight {
    color: var(--accent);
    font-style: italic;
}

.header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   3. CARDS & FORM ELEMENTS
   ========================================= */
.card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary);
    font-weight: 700;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 8px;
    display: inline-block;
}

.form-group {
    margin-bottom: 15px;
}

.row {
    display: flex;
    gap: 12px;
}

.col {
    flex: 1;
}

/* INPUTS */
label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #495057;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="file"],
select {
    width: 100%;
    padding: 12px 15px;
    /* Padding enak buat jempol */
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    background-color: #fff;
    transition: border-color 0.2s;
    appearance: none;
    /* Hilangkan style bawaan browser */
}

input:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

/* =========================================
   4. ACCORDION (NEW STYLES)
   ========================================= */

.accordion {
    background-color: var(--primary);
    color: var(--white);
    cursor: pointer;
    padding: 15px 20px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1rem;
    font-weight: 700;
    transition: 0.4s;
    border-radius: var(--radius);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.accordion.active,
.accordion:hover {
    background-color: var(--primary-hover);
}

.accordion .icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.accordion.active .icon {
    transform: rotate(180deg);
}

.panel {
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    margin-bottom: 10px;
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 0 5px;
    /* Sedikit padding horizontal */
}

/* =========================================
   5. MENU LIST & WRAPPERS
   ========================================= */

.info-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--primary-light);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
}

/* POSTER PROMO RAMADHAN */
.promo-poster {
    margin: 15px 0;
    text-align: center;
}

.promo-poster img {
    width: 100%;
    max-width: 400px;
    /* Batasi lebar agar tidak terlalu besar di desktop */
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 4px solid var(--primary-light);
}

/* Grid Layout */
.menu-list {
    display: grid;
    grid-template-columns: 1fr;
    /* Default Mobile: 1 Kolom */
    gap: 15px;
    padding-bottom: 10px;
    /* Jarak bawah saat accordion terbuka */
}

/* Tablet & Desktop: 2 Kolom jika lebar > 550px */
@media (min-width: 550px) {
    .menu-list {
        grid-template-columns: 1fr 1fr;
    }
}

/* KARTU MENU (WRAPPER) */
.menu-wrapper {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.menu-wrapper:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

/* Baris Item di dalam Wrapper */
.menu-item-qty {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Center vertikal */
    gap: 10px;
    background: #fff;
}

/* Deskripsi Teks Menu */
.menu-desc {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.menu-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.menu-detail {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.menu-price {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 4px;
}

/* Input Angka (QTY) */
.qty-input {
    width: 50px !important;
    /* Fixed width rapi */
    height: 38px !important;
    padding: 0 !important;
    text-align: center;
    border: 1px solid #ced4da !important;
    background-color: #fcfcfc !important;
    font-weight: bold;
    color: var(--primary);
    border-radius: 8px !important;
    font-size: 1.1rem !important;
    /* Angka lebih besar */
}

.qty-input:focus {
    background-color: #fff !important;
    border-color: var(--primary) !important;
}

/* Input Catatan (Notes) */
.menu-note {
    width: 100%;
    border: none !important;
    border-top: 1px solid #f1f1f1 !important;
    border-radius: 0 !important;
    padding: 10px 15px !important;
    font-size: 0.8rem !important;
    background: #fafafa !important;
    color: #555;
    font-style: italic;
}

.menu-note:focus {
    background: #fff !important;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.02) !important;
    color: #000;
}

/* =========================================
   6. SUMMARY & BUTTONS
   ========================================= */
.summary-card {
    background-color: #fff;
    border: 2px solid var(--primary-light);
}

/* QRIS STYLES */
.qris-container {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: var(--radius);
    border: 1px dashed #ced4da;
}

.qris-label {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

.qris-img {
    width: 100%;
    max-width: 250px;
    /* Ukuran optimal di HP */
    border-radius: 8px;
    border: 1px solid #eee;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text);
}

.highlight-row {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.2rem;
    border-top: 2px dashed #dee2e6;
    padding-top: 15px;
    margin-top: 15px;
}

.bank-info {
    background: var(--primary-light);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
    color: var(--primary);
    border: 1px solid rgba(45, 106, 79, 0.1);
}

.bank-info strong {
    display: block;
    font-size: 1.05rem;
    margin-top: 4px;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 4px 10px rgba(45, 106, 79, 0.2);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-primary:disabled {
    background-color: #adb5bd;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* =========================================
   7. UTILITIES
   ========================================= */
.status-text {
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
    font-weight: 600;
}

.text-danger {
    color: #dc3545;
}

.text-success {
    color: #198754;
}

.footer {
    text-align: center;
    margin-top: 40px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Custom Flatpickr Icon Position */
input.flatpickr-input {
    background-color: #fff;
    cursor: pointer;
    background-image: url('https://cdn-icons-png.flaticon.com/512/2693/2693507.png');
    background-size: 16px;
    background-position: right 15px center;
    background-repeat: no-repeat;
}

/* =========================================
   8. STICKY FOOTER
   ========================================= */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid var(--border);
}

.sticky-info {
    display: flex;
    flex-direction: column;
}

.sticky-info small {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.sticky-info span {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.2rem;
}

.btn-sticky {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    transition: transform 0.1s, background-color 0.2s;
    box-shadow: 0 4px 10px rgba(45, 106, 79, 0.3);
}

.btn-sticky:hover {
    background-color: var(--primary-hover);
}

.btn-sticky:active {
    transform: scale(0.95);
}