/*=============================== KETENTUAN ======================*/
:root {
    --primary-color: #8b6a49;
    --secondary-color: #4b2e1e;
    --text-light: #f8f9fa;
    --text-dark: #343a40;
    --red-reserved: rgba(243, 0, 24, 0.85);
    --grey-passed-day: #e0e0e0;
    --light-bg: #fdfdfd;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-strong: rgba(0, 0, 0, 0.25);
    --secondary-color-alpha-25: rgba(75, 46, 30, 0.25);
}

/* Navbar Styling */
.navbar-brand {
    font-weight: bold;
    color: #ffffff !important;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.navbar-brand .navbar-icon,
.navbar-brand .fas.fa-utensils,
.navbar-brand i.fas.fa-utensils,
.navbar-brand .fa-utensils {
    color: #ffffff !important;
    font-size: 1.5rem;
    display: inline-block !important;
    margin-right: 8px;
}

.navbar-brand .brand-text {
    color: #ffffff !important;
    font-weight: 600;
}

/* Memastikan ikon navbar muncul di semua halaman user */
body.halaman-menu .navbar-brand .fa-utensils,
body.halaman-menu .navbar-brand .fas.fa-utensils,
body.halaman-menu .navbar-brand i.fas.fa-utensils {
    color: #ffffff !important;
    font-size: 1.5rem;
    display: inline-block !important;
    margin-right: 8px;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Animasi flying-item untuk efek menambah ke keranjang */
.flying-item {
    position: fixed;
    z-index: 9999;
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1);
    opacity: 1;
    /* Memastikan elemen tidak muncul di bawah footer */
    max-width: 50px;
    max-height: 30px;
    overflow: hidden;
    white-space: nowrap;
}

.flying-item.animate {
    transform: translate(var(--dx), var(--dy)) scale(0.3);
    opacity: 0;
}

/* Memastikan elemen flying-item terhapus setelah animasi */
.flying-item.animate[style*="opacity: 0"] {
    display: none !important;
}

/* Memastikan tidak ada elemen yang muncul di bawah footer */
footer {
    position: relative;
    z-index: 1;
}

/* Hapus elemen flying-item yang mungkin tertinggal */
.flying-item {
    position: fixed !important;
    z-index: 9999 !important;
}

/* Pastikan elemen flying-item tidak muncul di area footer */
.flying-item[style*="top"] {
    max-height: 30px !important;
    overflow: hidden !important;
}

.navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #e0c3a3 !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link.active {
    color: #e0c3a3 !important;
    background-color: rgba(255, 255, 255, 0.15);
}

/* Override untuk user_header_new.css */
.navbar.navbar-expand-lg.navbar-dark.bg-primary.fixed-top .navbar-brand .fas.fa-utensils,
.navbar.navbar-expand-lg.navbar-dark.bg-primary.fixed-top .navbar-brand i.fas.fa-utensils,
.navbar.navbar-expand-lg.navbar-dark.bg-primary.fixed-top .navbar-brand .fa-utensils {
    color: #ffffff !important;
    font-size: 1.5rem;
    margin-right: 8px;
    display: inline-block !important;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #f4f4f4;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--secondary-color);
    margin-bottom: 0.8em;
}

p {
    margin-bottom: 1em;
}

/*======================================== INDEX  =======================================*/
body.index .sambutan, body.dashboard .sambutan, body.user-tentangkami .sambutan {
    position: relative;
    width: 100%;
    height: 75vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

body.index .sambutan .carousel-inner,
body.dashboard .sambutan .carousel-inner,
body.user-tentangkami .sambutan .carousel-inner,
body.index .sambutan .carousel-item,
body.dashboard .sambutan .carousel-item,
body.user-tentangkami .sambutan .carousel-item {
    width: 100%;
    height: 100%;
}

body.index .sambutan .carousel-item,
body.dashboard .sambutan .carousel-item,
body.user-tentangkami .sambutan .carousel-item {
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

body.index .sambutan .carousel-item::before,
body.dashboard .sambutan .carousel-item::before,
body.user-tentangkami .sambutan .carousel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

body.index .gambar-sambutan,
body.dashboard .gambar-sambutan,
body.user-tentangkami .gambar-sambutan {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    z-index: 0;
}

body.index .welcome-text-index,
body.dashboard .welcome-text-index,
body.user-tentangkami .welcome-text-index {
    position: relative;
    z-index: 2;
    color: var(--text-light);
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

body.index .welcome-text-index h1,
body.dashboard .welcome-text-index h1,
body.user-tentangkami .welcome-text-index h1 {
    font: bold 2rem/1.1 'Playfair Display', serif;
    margin-bottom: 0.6em;
    margin-top: 2em;
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.8);
    color: var(--text-light);
}

body.index .welcome-text-index p,
body.dashboard .welcome-text-index p,
body.user-tentangkami .welcome-text-index p {
    font: 300 1.5rem/1.6 'Poppins', sans-serif;
    margin-bottom: 2.5em;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

body.index .welcome-text-index .btn-light,
body.dashboard .welcome-text-index .btn-light,
body.user-tentangkami .welcome-text-index .btn-light {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: var(--text-light);
    padding: 16px 45px;
    font: 600 1.3rem 'Poppins', sans-serif;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

body.index .welcome-text-index .btn-light:hover,
body.dashboard .welcome-text-index .btn-light:hover,
body.user-tentangkami .welcome-text-index .btn-light:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* --- Card Perkenalan --- */
body.index .card-perkenalan {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: none;
}

body.index .card-perkenalan:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 25px rgba(97, 94, 94, 0.2);
}

body.index .kolom-gambarperkenalan {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

body.index .img-perkenalan {
    width: 90%;
    height: 300px;
    object-fit: cover;
    display: block;
    margin: 0 0 0 auto;
    border-radius: 15px 0 0 15px;
}

body.index .kolom-teks-perkenalan {
    padding: 20px;
    display: flex;
    align-items: center;
}

body.index .textperkenalan {
    font: bold 2rem 'Playfair Display', serif;
    margin-bottom: 20px;
    color: white;
    text-align: start;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    padding: 0 10px;
    max-width: 100%;
}

body.index .text-isiperkenalan {
    font: 1.1rem/1.7 'Poppins', sans-serif;
    color: white;
    text-align: justify;
    margin-bottom: 10px;
    padding: 0 10px;
    max-width: 100%;
}

/* Kalender/tanggalan */
body.index .tanggal-reservasi-section,
body.dashboard .tanggal-reservasi-section,
body.user-carapemesanan .tanggal-reservasi-section {
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 3rem auto 0 auto;
    max-width: 900px;
}

body.index .tanggal-reservasi-section-flex,
body.dashboard .tanggal-reservasi-section-flex,
body.user-carapemesanan .tanggal-reservasi-section-flex {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
}

body.index .tanggal-reservasi-card,
body.dashboard .tanggal-reservasi-card,
body.user-carapemesanan .tanggal-reservasi-card {
    background: #4b2e1e;
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px 0 rgba(139,106,73,0.13), 0 1.5px 6px 0 rgba(139,106,73,0.10);
    color: #fff;
}

body.index .calendar-container,
body.dashboard .calendar-container,
body.user-carapemesanan .calendar-container {
    min-width: 400px;
    max-width: 650px;
    flex: 2 1 400px;
    background: #fff;
    color: #4b2e1e;
    
}

body.index .legend-container,
body.dashboard .legend-container,
body.user-carapemesanan .legend-container {
    flex: 1 1 200px;
    background: none;
    color: #fff;
    padding: 0 1rem;
}

body.index .calendar-container:hover {
    transform: scale(1.01);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
}

/* Gaya khusus FullCalendar */
.fc .fc-toolbar-title {
    font: bold 2rem 'Playfair Display', serif;
    color: var(--secondary-color);
}

.fc .fc-button-primary {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    transition: all 0.2s ease-in-out;
}

.fc .fc-button-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.fc-event-full-day-reserved {
    background-color: var(--red-reserved) !important;
    color: #ffffff !important;
    font: 600 0.9em/1 'Poppins', sans-serif !important;
    border-radius: 4px !important;
    padding: 2px 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    cursor: default !important;
    z-index: 1;
    opacity: 0.95;
}

.fc-daygrid-day-number {
    position: relative;
    z-index: 2;
    color: var(--secondary-color);
    font-weight: 500;
}

.fc-day-sun {
    background-color: rgba(255, 99, 71, 0.1) !important;
}

.fc-day-sun .fc-daygrid-day-number {
    color: #dc3545 !important;
}

.fc-daygrid-day.passed-day {
    background-color: var(--grey-passed-day);
    opacity: 0.7;
    cursor: not-allowed;
    color: #555;
}

.fc-daygrid-day.fc-day-today {
    background-color: rgba(139, 106, 73, 0.15);
    border-radius: 8px;
}

/* Legenda Kalender */
body.index .legend-container h5 {
    font: 1.3rem 'Playfair Display', serif;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

body.index .legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.06);
    border-radius: 0.6rem;
    padding: 0.5rem 0.7rem;
    transition: background 0.2s;
}

body.index .legend-item:last-child { margin-bottom: 0; }
body.index .legend-item:hover {
    background: rgba(255,255,255,0.13);
}

body.index .legend-color-box {
    width: 25px;
    height: 25px;
    border-radius: 5px;
    margin-right: 12px;
    border: 1.5px solid rgba(255,255,255,0.18);
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

body.index .legend-color-box.red-reserved { background-color: var(--red-reserved); }
body.index .legend-color-box.sunday-day { background-color: #ffe0e0; }
body.index .legend-color-box.passed-day { background-color: var(--grey-passed-day); }
body.index .legend-item span {
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

/* === PRODUK TERSEDIA SECTION (SWIPER) === */
body.index .produk-tersedia {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: 0 0.8rem 2rem var(--shadow-light);
    margin: 4rem auto;
    max-width: 70rem;
    position: relative;
    overflow: hidden;
}

body.index .produk-tersedia::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.3;
    pointer-events: none;
}

body.index .produk-tersedia h4 {
    font: 700 clamp(2rem, 5vw, 2.5rem) 'Playfair Display', serif;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    text-align: center;
    letter-spacing: -0.03rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 0.1rem 0.2rem rgba(0, 0, 0, 0.2);
}

body.index .produk-slideshow {
    width: 100%;
    max-width: 65rem;
    margin: 0 auto;
    position: relative;
    padding: 0 1rem;
    box-sizing: border-box;
}

body.index .swiper.mySwiper {
    width: 100%;
    height: auto;
    padding-bottom: 1.5rem;
}

body.index .swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1.2rem;
    background: linear-gradient(145deg, var(--light-bg), #f7f7f7);
    border-radius: 1.2rem;
    box-shadow: 0 0.8rem 1.8rem var(--shadow-light);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(139, 106, 73, 0.1);
    position: relative;
    overflow: hidden;
    height: auto;
    min-height: 20rem;
}

body.index .swiper-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, var(--secondary-color-alpha-25));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
    pointer-events: none;
}

body.index .swiper-slide:hover::before { opacity: 1; }
body.index .swiper-slide:hover {
    transform: translateY(-0.8rem) scale(1.01);
    box-shadow: 0 1.2rem 2.5rem var(--shadow-strong);
    border-color: var(--primary-color);
}

body.index .swiper-slide img {
    width: 100%;
    height: 15rem;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.5rem 1rem var(--shadow-medium);
    transition: transform 0.3s ease-in-out;
    will-change: transform;
}

body.index .swiper-slide:hover img { transform: scale(1.03); }

body.index .swiper-slide p {
    font: 700 clamp(1.1rem, 2.5vw, 1.4rem) 'Poppins', sans-serif;
    color: var(--secondary-color);
    line-height: 1.3;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* === PAGINASI SWIPER === */
.swiper-pagination { bottom: 0.2rem !important; }

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
    width: 0.6rem;
    height: 0.6rem;
}

.swiper-pagination-bullet-active {
    background: var(--text-light) !important;
    transform: scale(1.2);
    box-shadow: 0 0.1rem 0.4rem rgba(255, 255, 255, 0.5);
}

/* --- Gaya Modal (Cara Pemesanan) --- */
#dynamicModal .modal-header {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-bottom: none;
}

#dynamicModal .modal-title {
    color: var(--text-light);
}

#dynamicModal .btn-close {
    filter: invert(1);
}

#dynamicModal .modal-body {
    padding: 30px;
    color: var(--text-dark);
}

#dynamicModal .modal-body h5 {
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
}

#dynamicModal ol {
    list-style-type: decimal;
    padding-left: 25px;
}

#dynamicModal ol li {
    margin-bottom: 10px;
    line-height: 1.6;
}

#dynamicModal .modal-footer {
    border-top: none;
    padding: 20px 30px;
}

/*===================================== MENU =====================================*/
/*===================================== MENU =====================================*/
body.halaman-menu .menu-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: auto;
}

body.halaman-menu .kategori {
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 2em;
    position: relative;
    font-family: 'Playfair Display', serif;
}

body.halaman-menu .kategori::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 3px;
}

body.halaman-menu .produk-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

body.halaman-menu .produk-card {
    width: 320px;
    min-width: 320px;
    height: 450px; /* Tinggi yang seragam */
    background: var(--light-bg);
    border-radius: 18px;
    box-shadow: 0 8px 25px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
}

body.halaman-menu .gambar-wrapper {
    height: 200px; /* Tinggi gambar yang seragam */
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.halaman-menu .gambar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

body.halaman-menu .produk-card:hover img {
    transform: scale(1.05);
}

body.halaman-menu .produk-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

body.halaman-menu .produk-item > div:last-child {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px; /* Tinggi minimum untuk konten */
}

body.halaman-menu .nama-menu {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-family: 'Playfair Display', serif;
    text-align: center;
    line-height: 1.3;
    min-height: 2.6em; /* Tinggi minimum untuk nama menu */
    display: flex;
    align-items: center;
    justify-content: center;
}

body.halaman-menu .deskripsi {
    font-size: 0.95rem;
    color: #666;
    flex: 1;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
    min-height: 3em; /* Tinggi minimum untuk deskripsi */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

body.halaman-menu .produk-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: auto; /* Dorong ke bawah */
    min-height: 60px; /* Tinggi minimum untuk footer */
}

body.halaman-menu .produk-harga {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    flex: 1;
    text-align: left;
}

body.halaman-menu .btn-pesan {
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    min-width: 100px; /* Lebar minimum tombol */
}

body.halaman-menu .btn-pesan:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Responsive untuk menu card */
@media (max-width: 992px) {
    body.halaman-menu .produk-card {
        width: 300px;
        min-width: 300px;
        height: 420px;
    }
    
    body.halaman-menu .gambar-wrapper {
        height: 180px;
    }
    
    body.halaman-menu .produk-item > div:last-child {
        min-height: 240px;
        padding: 18px;
    }
    
    body.halaman-menu .nama-menu {
        font-size: 1.3rem;
        min-height: 2.4em;
    }
    
    body.halaman-menu .deskripsi {
        font-size: 0.9rem;
        min-height: 2.8em;
    }
    
    body.halaman-menu .produk-footer {
        min-height: 55px;
        padding-top: 12px;
    }
}

@media (max-width: 768px) {
    body.halaman-menu .produk-card {
        width: 280px;
        min-width: 280px;
        height: 400px;
    }
    
    body.halaman-menu .gambar-wrapper {
        height: 160px;
    }
    
    body.halaman-menu .produk-item > div:last-child {
        min-height: 240px;
        padding: 16px;
    }
    
    body.halaman-menu .nama-menu {
        font-size: 1.2rem;
        min-height: 2.2em;
    }
    
    body.halaman-menu .deskripsi {
        font-size: 0.85rem;
        min-height: 2.6em;
    }
    
    body.halaman-menu .produk-footer {
        min-height: 50px;
        padding-top: 10px;
    }
    
    body.halaman-menu .btn-pesan {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 90px;
    }
}

@media (max-width: 576px) {
    body.halaman-menu .produk-card {
        width: 100%;
        min-width: 280px;
        max-width: 320px;
        height: 380px;
    }
    
    body.halaman-menu .gambar-wrapper {
        height: 140px;
    }
    
    body.halaman-menu .produk-item > div:last-child {
        min-height: 240px;
        padding: 14px;
    }
    
    body.halaman-menu .nama-menu {
        font-size: 1.1rem;
        min-height: 2em;
    }
    
    body.halaman-menu .deskripsi {
        font-size: 0.8rem;
        min-height: 2.4em;
    }
    
    body.halaman-menu .produk-footer {
        min-height: 45px;
        padding-top: 8px;
    }
    
    body.halaman-menu .btn-pesan {
        padding: 8px 16px;
        font-size: 0.85rem;
        min-width: 80px;
    }
    
    body.halaman-menu .produk-harga {
        font-size: 1.2rem;
    }
}

/* --- Back To Top Button --- */
#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-transform: uppercase;
    cursor: pointer;
}

#backToTopBtn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* --- Menu Search Section --- */
body.halaman-menu .menu-search-section {
    background: var(--light-bg);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 40px auto;
}

body.halaman-menu .menu-search-section h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    text-align: center;
    font-weight: bold;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

body.halaman-menu .input-group {
    display: flex;
    max-width: 600px;
    margin: auto;
    /* Penyesuaian penting untuk responsivitas */
    flex-wrap: wrap; /* Izinkan elemen membungkus ke baris baru */
    gap: 10px; /* Jarak antar input/tombol saat membungkus */
}

body.halaman-menu .form-control {
    flex: 1 1 250px; /* Fleksibilitas: tumbuh/menyusut, dasar 250px */
    border-radius: 25px; /* Radius penuh agar tombol terlihat baik sendiri */
    padding: 12px 18px;
    font-size: 1rem;
    border: 1px solid #ccc;
    min-width: 150px; /* Memastikan input tidak terlalu kecil */
}

body.halaman-menu .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 106, 73, 0.25);
    outline: none;
}

body.halaman-menu .menu-search-section .btn {
    flex-shrink: 0; /* Mencegah tombol menyusut */
    border-radius: 25px; /* Radius penuh agar tombol terlihat baik sendiri */
    background: var(--primary-color);
    color: var(--text-light);
    padding: 12px 18px;
    border: none;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

body.halaman-menu .menu-search-section .btn:hover {
    background: var(--secondary-color);
}

/*===================================== RESPONSIVE =====================================*/
@media (max-width: 992px) {
    /* Responsive untuk halaman menu (992px) */
    body.halaman-menu .menu-section {
        padding: 40px 15px;
    }
    body.halaman-menu .kategori {
        font-size: 2.2rem;
        margin-bottom: 1.5em;
    }
    body.halaman-menu .produk-container {
        gap: 20px;
    }
    body.halaman-menu .produk-card {
        max-width: 300px;
    }
    body.halaman-menu .gambar-wrapper {
        height: 200px;
    }
    body.halaman-menu .nama-menu {
        font-size: 1.3rem;
    }
    body.halaman-menu .deskripsi {
        font-size: 0.9rem;
    }
    body.halaman-menu .produk-harga {
        font-size: 1.2rem;
    }
    body.halaman-menu .btn-pesan {
        padding: 8px 18px;
        font-size: 0.9rem;
    }
    body.halaman-menu .menu-search-section {
        padding: 20px;
        margin: 30px auto;
    }
    body.halaman-menu .menu-search-section h3 {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }
}

@media (max-width: 768px) {
    /* Responsive untuk halaman menu (768px) */
    body.halaman-menu .menu-section {
        padding: 30px 10px;
    }
    body.halaman-menu .kategori {
        font-size: 2rem;
        margin-bottom: 1.2em;
    }
    body.halaman-menu .produk-card {
        max-width: 90%;
    }
    body.halaman-menu .gambar-wrapper {
        height: 180px;
    }
    body.halaman-menu .nama-menu {
        font-size: 1.2rem;
    }
    body.halaman-menu .deskripsi {
        font-size: 0.85rem;
    }
    body.halaman-menu .produk-harga {
        font-size: 1.1rem;
    }
    body.halaman-menu .menu-search-section h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    /* Responsive untuk halaman menu (576px) */
    body.halaman-menu .input-group {
        flex-direction: column; /* Ubah tata letak menjadi kolom */
        gap: 15px; /* Tambah jarak vertikal */
    }
    body.halaman-menu .form-control {
        border-radius: 25px; /* Border radius penuh di semua sisi */
        width: 100%; /* Lebar penuh */
    }
    body.halaman-menu .menu-search-section .btn {
        border-radius: 25px; /* Border radius penuh di semua sisi */
        width: 100%; /* Lebar penuh */
    }
    body.halaman-menu .kategori {
        font-size: 1.8rem;
    }
    body.halaman-menu .gambar-wrapper {
        height: 160px;
    }
}

/* Optimasi Performa & Aksesibilitas */
@media (prefers-reduced-motion: reduce) {
    body.halaman-menu .produk-card,
    body.halaman-menu .produk-card img,
    body.halaman-menu .btn-pesan,
    #backToTopBtn,
    body.halaman-menu .menu-search-section .btn {
        transition: none !important;
    }
    body.halaman-menu .produk-card:hover,
    body.halaman-menu .produk-card:hover img,
    #backToTopBtn:hover {
        transform: none !important;
    }
}

/*======================== Tentang Kami (Footer) ========================*/
.kontakkami h5 {
    color: var(--text-light); /* Menggunakan variabel CSS untuk warna putih */
}
.informasi h5 {
    color: var(--text-light); /* Menggunakan variabel CSS untuk warna putih */
}
.ks h5 {
    color: var(--text-light); /* Menggunakan variabel CSS untuk warna putih */
}

/*================================== LOGIN ===================================*/

body.login {
    display: flex; justify-content: center; align-items: center; min-height: 100vh; overflow: hidden;
    margin: 0; padding: 0; font-family: 'Poppins', sans-serif; color: var(--text-dark);
    background:
        radial-gradient(circle at 15% 85%, rgba(139, 106, 73, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 85% 15%, rgba(75, 46, 30, 0.1) 0%, transparent 50%),
        url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgdmlld0JveD0iMCAwIDIwMCAyMDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGZpbHRlciBpZD0ibC1ub2lzZSIgeD0iMCIgeT0iMCI+PGZlVHVyYmVsZW5jZSB0eXBlPSJmcmFjdGFsTm9pc2UiIGJhc2lMZW5ndGg9IjAuNzUiIG51bU9jdGF2ZXM9IjIiIHNlYW09InNlYW0iIHN0aXRjaFRpbGVzPSJzdGl0Y2hUaWxlcyIvPjxmZUNvbG9yTWF0cml4IHR5cGU9InNhdHVyYXRlIiB2YWx1ZXM9IjAiLz48L2ZpbHRlci4+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0icmdiYSg0NSwyMCwxMCwwLjAzKSIgZmlsdGVyPSJ1cmwoI2wtbm9pc2UpIi8+PC9zdmc+'),
        linear-gradient(135deg, var(--primary-color) 0%, rgba(75, 46, 30, 0.9) 100%);
    background-size: cover, cover, 100% 100%; background-position: center center; background-attachment: fixed;
    transition: background-position 0.8s ease-out;
}

.login-wrapper {
    display: flex; justify-content: center; align-items: center; width: 100%; padding: 20px;
    z-index: 1; perspective: 1000px;
}

.login-card, .register-card {
    background-color: #fff;
    max-width: 420px;
    width: 100%;
    padding: 48px 36px 36px 36px;
    font-size: 1.15rem;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
.login-title, .register-title {
    font-size: 2.4rem;
    margin-bottom: 32px;
}
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.login-card-body { padding: 0; }

.login-back-link {
    position: absolute; top: 20px; left: 25px; color: var(--secondary-color); font-size: 1rem;
    transition: all 0.3s ease; z-index: 10; text-decoration: none;
    display: flex; align-items: center; gap: 8px; opacity: 0.9; font-weight: 500;
}
.login-back-link:hover { color: var(--primary-color); transform: translateX(-5px); opacity: 1; }
.login-back-icon { width: 20px; height: 20px; vertical-align: middle; }
.login-back-link .back-text { transition: opacity 0.3s ease, transform 0.3s ease; opacity: 0; transform: translateX(-5px); white-space: nowrap; font-size: 0.9rem; }
.login-back-link:hover .back-text { opacity: 1; transform: translateX(0); }

.login-form { display: flex; flex-direction: column; gap: 20px; } /* Reduced gap */
.login-input-group { position: relative; margin-bottom: 0; }
.login-label {
    position: absolute; top: 50%; left: 15px; transform: translateY(-50%); color: #a0a0a0;
    font-size: 0.9rem; pointer-events: none; transition: all 0.2s ease-out; padding: 0 4px; z-index: 1;
}
.login-input {
    width: 100%; padding: 12px 15px; border: none; border-bottom: 2px solid #e5e5e5;
    border-radius: 4px 4px 0 0; font-size: 0.95rem; transition: all 0.3s ease;
    background-color: #fcfcfc; color: var(--text-dark); position: relative; z-index: 0;
    min-height: 48px; /* Stabilkan tinggi input agar ikon tidak bergeser saat mengetik */
    box-sizing: border-box;
}
.login-input::placeholder { color: transparent; }
.login-input:focus {
    border-bottom-color: var(--primary-color); background-color: white;
    box-shadow: 0 2px 8px rgba(139, 106, 73, 0.1); outline: none;
}
.login-input:focus + .login-label, .login-input:not(:placeholder-shown) + .login-label {
    top: -10px; left: 8px; font-size: 0.75rem; color: var(--primary-color);
    transform: translateY(0); background-color: var(--light-bg); padding: 0 6px;
}

.password-input-group { position: relative; }
.password-input-group { min-height: 48px; } /* Samakan tinggi grup dengan input */
.password-input-group .login-input { padding-right: 45px; } /* Ruang untuk ikon mata */
.login-input-group .toggle-password {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%); cursor: pointer;
    color: #999; font-size: 1rem; transition: color 0.3s ease, transform 0.2s ease; padding: 8px; z-index: 2;
}
.toggle-password:hover { color: var(--secondary-color); transform: translateY(-50%) scale(1.1); }

.login-options {
    margin-top: 5px; margin-bottom: 25px; font-size: 0.85rem; color: #777;
    display: flex; justify-content: space-between; align-items: center;
}
.login-remember .form-check-input { margin-right: 8px; border-color: #bbb; cursor: pointer; width: 1em; height: 1em; accent-color: var(--primary-color); }
.login-remember .form-check-label { color: #666; cursor: pointer; font-size: 0.9rem; }
.login-forgot { color: var(--primary-color); text-decoration: none; font-weight: 600; transition: color 0.3s ease, text-decoration 0.3s ease; }
.login-forgot:hover { color: var(--secondary-color); text-decoration: underline; }

.login-button {
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color)); border: none;
    color: var(--text-light); padding: 14px 0; font-size: 1.1rem; font-weight: 700; border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    width: 100%; cursor: pointer; letter-spacing: 0.8px; position: relative; overflow: hidden; text-transform: uppercase;
}
.login-button::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: rgba(255, 255, 255, 0.1); transform: rotate(45deg); transition: transform 0.5s ease-out; opacity: 0; }
.login-button:hover::before { transform: rotate(45deg) translateX(20%); opacity: 1; }
.login-button:hover { transform: translateY(-4px); box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3); background: linear-gradient(145deg, var(--secondary-color), var(--primary-color)); }
.login-button:active { transform: translateY(0px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); transition: transform 0.1s ease, box-shadow 0.1s ease; }

.login-error { color: var(--red-reserved); font-size: 0.9rem; margin-top: 15px; margin-bottom: 20px; min-height: 20px; font-weight: 600; text-align: center; animation: shake 0.5s ease-in-out; }
@keyframes shake {
    0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); } 75% { transform: translateX(-5px); }
}

.login-register { margin-top: 20px; font-size: 0.9rem; text-align: center; color: #666; }
.login-register-link {
    display: inline-block; margin-left: 8px; color: var(--primary-color); text-decoration: none;
    font-weight: 700; transition: color 0.3s ease, transform 0.2s ease; position: relative; padding-bottom: 2px;
}
.login-register-link::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 0; height: 2px; background-color: var(--secondary-color); transform: translateX(-50%); transition: width 0.3s ease-out; }
.login-register-link:hover::after { width: 100%; }
.login-register-link:hover { color: var(--secondary-color); transform: translateY(-1px); }

@media (max-width: 768px) {
    .login-card,
    .register-card { /* Corrected from .lregister-card to .register-card */
        padding: 25px;
        max-width: 320px;
        border-radius: 12px;
    }
    .login-title,
    .register-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    .login-input,
    .register-input {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    .login-label,
    .register-label {
        font-size: 0.85rem;
    }
    .login-input:focus + .login-label, .login-input:not(:placeholder-shown) + .login-label,
    .register-input:focus + .register-label, .register-input:not(:placeholder-shown) + .register-label { /* Corrected .lregister-input to .register-input */
        top: -8px;
        font-size: 0.7rem;
    }
    .login-button,
    .register-button {
        padding: 12px 0;
        font-size: 1rem;
    }
    .register-login-link { /* Ensure this exists for register responsiveness */
        padding: 12px 0;
        font-size: 1rem;
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    body.login,
    body.register {
        background-size: cover, cover, 80% 80%;
    }
    .login-card,
    .register-card {
        padding: 20px;
        margin: 0 10px;
        border-radius: 8px;
    }
    .login-title,
    .register-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    .login-back-link, /* This class is only for login, but included for completeness */
    .register-back-link { /* Assuming you might want a back link on register as well */
        top: 10px;
        left: 10px;
        font-size: 0.85rem;
    }
    .login-back-icon, /* This class is only for login, but included for completeness */
    .register-back-icon { /* Assuming you might want a back icon on register as well */
        width: 16px;
        height: 16px;
    }
    .login-options { /* This class is only for login, but included for completeness */
        font-size: 0.8rem;
        margin-bottom: 15px;
    }
    .register-options { /* Ensure this exists for register responsiveness if needed */
        font-size: 0.8rem;
        margin-bottom: 15px;
    }
    .login-register { /* This class is only for login, but included for completeness */
        font-size: 0.8rem;
        margin-top: 15px;
    }}

    /*========================PROFIL===========================*/

    body.profil {
    background-color: var(--light-bg); /* Latar belakang krem untuk halaman profil */
    font-family: 'Poppins', sans-serif; /* Font modern yang ramah */
    color: var(--text-dark); /* Warna teks default */
}

/* Container di dalam Halaman Profil */
body.profil .container {
    background-color: #ffffff; /* Latar belakang putih untuk area form/kartu */
    border-radius: 20px; /* Sudut lebih membulat untuk tampilan "gemoy" */
    box-shadow: 0 10px 40px var(--shadow-medium); /* Bayangan yang lebih kuat */
    padding: 50px; /* Padding yang lebih luas */
    max-width: 750px; /* Kontrol lebar maksimum */
    margin-top: 60px; /* Jarak dari header */
    margin-bottom: 60px; /* Jarak dari bawah */
    border: 1px solid rgba(139, 106, 73, 0.15); /* Border tipis berwarna hangat */
    transition: all 0.4s ease-in-out; /* Transisi halus untuk efek hover */
}

body.profil .container:hover {
    transform: translateY(-8px); /* Angkat sedikit lebih tinggi saat hover */
    box-shadow: 0 15px 50px var(--shadow-strong); /* Bayangan lebih kuat saat hover */
}

/* Judul H2 di dalam Halaman Profil */
body.profil h2 {
    font-family: 'Playfair Display', serif; /* Font serif yang elegan */
    font-size: 2.8rem; /* Ukuran judul lebih besar */
    color: var(--secondary-color); /* Warna coklat gelap */
    text-align: center;
    margin-bottom: 40px; /* Jarak lebih banyak di bawah judul */
    font-weight: 700;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.1); /* Bayangan teks yang lebih jelas */
}

/* Label Form di dalam Halaman Profil */
body.profil .form-label {
    font-weight: 600; /* Label lebih tebal */
    color: var(--text-dark); /* Warna teks label lebih gelap */
    margin-bottom: 8px;
    font-size: 1.05rem; /* Ukuran font label sedikit lebih besar */
}

/* Kontrol Form (Input) di dalam Halaman Profil */
body.profil .form-control {
    border-radius: 12px; /* Input lebih membulat */
    padding: 14px 20px; /* Padding input yang nyaman */
    border: 1px solid #e0d0c0; /* Warna border yang lebih lembut */
    font-size: 1.05rem; /* Ukuran font di dalam input sedikit lebih besar */
    transition: all 0.3s ease;
    background-color: #fcf8f5; /* Latar belakang input off-white/krem */
    color: var(--text-dark);
}

body.profil .form-control:focus {
    border-color: var(--primary-color); /* Highlight dengan warna primer saat fokus */
    box-shadow: 0 0 0 0.3rem rgba(139, 106, 73, 0.3); /* Glow yang lebih kuat dan hangat */
    outline: none;
    background-color: #ffffff; /* Tetap putih saat fokus */
}

/* Grup Input Password dengan Toggle di dalam Halaman Profil */
body.profil .password-input-group {
    position: relative;
}

body.profil .password-input-group .form-control {
    padding-right: 50px; /* Ruang lebih untuk ikon mata */
    min-height: 48px; /* Tinggi minimum yang konsisten */
    box-sizing: border-box; /* Memastikan padding termasuk dalam tinggi */
    line-height: 1.5; /* Memastikan teks tidak mempengaruhi posisi ikon */
}
/* Wrapper agar ikon absolut relatif stabil pada tinggi input */
body.profil .password-field-wrapper {
    position: relative;
}
body.profil .password-field-wrapper .form-control {
    width: 100%;
}
body.profil .password-field-wrapper .toggle-password {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
}

/* Ikon Toggle Password di dalam Halaman Profil */
body.profil .toggle-password {
    position: absolute;
    right: 25px;
    top: 64%; /* Diturunkan sedikit lagi dari 60% */
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    font-size: 1.3rem;
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 10px;
    z-index: 2;
    pointer-events: auto; /* Memastikan ikon bisa diklik */
    line-height: 1; /* Memastikan ikon tidak bergeser */
}

body.profil .toggle-password:hover {
    color: var(--secondary-color); /* Berubah warna menjadi coklat gelap saat hover */
    transform: translateY(-50%) scale(1.15); /* Sedikit membesar saat hover */
}

/* Tombol Primer di dalam Halaman Profil */
body.profil .btn-primary {
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: var(--text-light);
    padding: 15px 30px; /* Padding yang lebih besar */
    font-size: 1.15rem; /* Ukuran font lebih besar */
    font-weight: 700;
    border-radius: 10px; /* Sudut tombol lebih lembut */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); /* Bayangan awal yang lebih kuat */
    letter-spacing: 1px; /* Spasi huruf untuk elegan */
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

body.profil .btn-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.15); /* Efek kilauan yang lebih cerah */
    transform: rotate(45deg);
    transition: transform 0.6s ease-out; /* Transisi kilauan lebih lambat */
    opacity: 0;
}

body.profil .btn-primary:hover::before {
    transform: rotate(45deg) translateX(25%); /* Gerakan kilauan lebih jelas */
    opacity: 1;
}

body.profil .btn-primary:hover {
    transform: translateY(-5px); /* Angkat lebih tinggi saat hover */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3); /* Bayangan lebih jelas saat hover */
    background: linear-gradient(145deg, var(--secondary-color), var(--primary-color)); /* Tukar gradien saat hover */
}

body.profil .btn-primary:active {
    transform: translateY(0px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Tombol Sekunder di dalam Halaman Profil */
body.profil .btn-secondary {
    background-color: #f7f3f0; /* Warna krem off-white */
    border: 1px solid #e0d0c0; /* Border lembut yang serasi */
    color: var(--secondary-color); /* Warna teks coklat sekunder */
    padding: 15px 30px;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08); /* Bayangan lembut */
}

body.profil .btn-secondary:hover {
    background-color: #eee9e5; /* Krem sedikit lebih gelap saat hover */
    border-color: var(--primary-color); /* Highlight dengan warna primer saat hover */
    color: var(--primary-color); /* Ubah warna teks ke primer */
    transform: translateY(-3px); /* Angkat sedikit saat hover */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

body.profil .btn-secondary:active {
    transform: translateY(0px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* Alert Messages di dalam Halaman Profil */
body.profil .alert {
    border-radius: 15px; /* Alert dengan sudut lebih lembut */
    font-size: 1rem;
    padding: 18px 25px; /* Padding alert yang lebih luas */
    margin-bottom: 30px;
    border: none;
    text-align: center;
    font-weight: 500;
    line-height: 1.5;
}

body.profil .alert-success {
    background-color: #e6f7e6; /* Hijau lembut */
    color: #27ae60; /* Teks hijau gelap */
    box-shadow: 0 3px 15px rgba(39, 174, 96, 0.15); /* Bayangan lebih terlihat */
}

body.profil .alert-danger {
    background-color: var(--soft-pink); /* Pink lembut */
    color: #c0392b; /* Teks merah gelap */
    box-shadow: 0 3px 15px rgba(192, 57, 43, 0.15); /* Bayangan lebih terlihat */
}

/* Penyesuaian Responsif di dalam Halaman Profil */
@media (max-width: 768px) {
    body.profil .container {
        padding: 35px;
        margin: 40px 20px;
    }
    body.profil h2 {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }
    body.profil .form-control {
        padding: 12px 18px;
        font-size: 1rem;
        min-height: 46px; /* Tinggi minimum yang konsisten untuk tablet */
    }
    body.profil .btn-primary,
    body.profil .btn-secondary {
        padding: 12px 25px;
        font-size: 1rem;
    }
    body.profil .toggle-password {
        right: 15px;
        font-size: 1.1rem;
        top: 64%; /* Diturunkan sedikit lagi dari 60% */
        line-height: 1; /* Memastikan ikon tidak bergeser */
    }
}

@media (max-width: 576px) {
    body.profil .container {
        padding: 25px;
        border-radius: 15px;
        margin: 30px 15px;
    }
    body.profil h2 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    body.profil .form-label {
        font-size: 0.95rem;
    }
    body.profil .form-control {
        padding: 10px 15px;
        font-size: 0.9rem;
        border-radius: 10px;
        min-height: 44px; /* Tinggi minimum yang konsisten untuk mobile */
    }
    body.profil .btn-primary,
    body.profil .btn-secondary {
        font-size: 0.95rem;
        padding: 10px 20px;
        border-radius: 8px;
    }
    body.profil .toggle-password {
        right: 10px;
        font-size: 1rem;
        top: 64%; /* Diturunkan sedikit lagi dari 60% */
    }
}

/* =================== RIWAYAT PEMESANAN / INVOICE USER (REVISI WARNA) =================== */
body.invoice {
    background: var(--light-bg);
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
}
.invoice-container {
    max-width: 900px;
    margin: 40px auto 60px auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px var(--shadow-light);
    padding: 40px 28px 32px 28px;
}
.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.3rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 0.5em;
}
.page-header p {
    color: #6d4c2b;
    font-size: 1.1rem;
    margin-bottom: 2em;
}
.section-card {
    background: var(--light-bg);
    border-radius: 14px;
    box-shadow: 0 2px 10px var(--shadow-light);
    padding: 28px 20px 22px 20px;
    margin-bottom: 32px;
}
.status-section h3, .history-section h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.2em;
}
.status-message {
    padding: 18px 20px;
    border-radius: 10px;
    font-size: 1.08rem;
    margin-bottom: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px var(--shadow-light);
    color: var(--text-dark);
    background: #f7f7f7;
}
.status-disetujui { background: #e6f7e6; color: #219150; border-left: 5px solid #219150; }
.status-menunggu-konfirmasi { background: #fffbe6; color: #bfa100; border-left: 5px solid #bfa100; }
.status-ditolak { background: #ffeaea; color: #c0392b; border-left: 5px solid #c0392b; }
.status-belum-ada { background: #f4f4f4; color: #888; border-left: 5px solid #bbb; }
.status-message i { font-size: 1.3em; margin-right: 8px; }

.invoice-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow-light);
    padding: 28px 18px 18px 18px;
    margin-bottom: 24px;
}
.invoice-box h2, .invoice-box h3 {
    font-family: 'Playfair Display', serif;
    color: var(--secondary-color);
    margin-bottom: 1em;
}
.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
    background: #fff;
}
.invoice-table tr.heading td {
    background: #f3e9de;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.05em;
    border-bottom: 2px solid #e0d0c0;
    padding: 10px 8px;
}
.invoice-table tr.item td {
    border-bottom: 1px solid #f0e6d8;
    padding: 8px 8px;
    color: var(--text-dark);
}
.invoice-table tr.total td {
    font-weight: 700;
    color: var(--primary-color);
    background: #f7f2ed;
    border-top: 2px solid #e0d0c0;
    padding: 10px 8px;
}
.download-button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 28px;
    font-size: 1.05rem;
    font-weight: 600;
    box-shadow: 0 4px 16px var(--shadow-light);
    transition: background 0.3s, transform 0.2s;
    margin-top: 10px;
    margin-bottom: 10px;
}
.download-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px) scale(1.04);
}
.riwayat-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-light);
    margin-bottom: 1.5em;
}
.riwayat-table th, .riwayat-table td {
    padding: 12px 10px;
    text-align: left;
    font-size: 1rem;
}
.riwayat-table th {
    background: #f3e9de;
    color: var(--secondary-color);
    font-weight: 700;
    border-bottom: 2px solid #e0d0c0;
}
.riwayat-table tr {
    border-bottom: 1px solid #f0e6d8;
}
.riwayat-table tr:last-child {
    border-bottom: none;
}
.riwayat-table td {
    color: var(--text-dark);
}
.riwayat-table .badge {
    font-size: 0.98em;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
}
.no-data-message {
    text-align: center;
    color: #bfa100;
    background: #fffbe6;
    border-radius: 10px;
    padding: 18px 0;
    font-size: 1.08rem;
    margin: 18px 0 10px 0;
    font-weight: 500;
}
@media (max-width: 768px) {
    .invoice-container {
        padding: 18px 4vw 18px 4vw;
    }
    .section-card {
        padding: 16px 6px 14px 6px;
    }
    .invoice-box {
        padding: 14px 4px 10px 4px;
    }
    .riwayat-table th, .riwayat-table td {
        padding: 8px 4px;
        font-size: 0.95rem;
    }
}
@media (max-width: 480px) {
    .invoice-container {
        padding: 6px 0 6px 0;
    }
    .page-header h1 {
        font-size: 1.3rem;
    }
    .section-card h3 {
        font-size: 1.05rem;
    }
}

/* Step Card Cara Melakukan Pemesanan */
.vertical-steps .step-card {
  background: var(--light-bg, #fff);
  border-radius: 2rem;
  box-shadow: 0 4px 24px 0 rgba(139,106,73,0.08), 0 1.5px 6px 0 rgba(139,106,73,0.06);
  border: 2.5px solid var(--step-border1, #e0c3a3);
  color: var(--text-dark, #4b2e1e);
}
.vertical-steps .step-card.alt {
  background: var(--secondary-color, #8b6a49);
  border: 2.5px solid var(--primary-color, #4b2e1e);
  color: #fff;
}
.vertical-steps .step-card .step-icon {
  background: #fff;
  border: 2.5px solid var(--primary-color, #4b2e1e);
  color: var(--primary-color, #4b2e1e);
}
.vertical-steps .step-card.alt .step-icon {
  background: var(--primary-color, #4b2e1e);
  border: 2.5px solid #fff;
  color: #fff;
}

/* Kalender Reservasi */
.tanggal-reservasi-section .calendar-container {
  background: var(--light-bg, #fff);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
  min-width: 300px;
  max-width: 800px;
  margin: 0 auto;
}

/* === Highlight Hari Senin di Kalender === */
.fc-daygrid-day.monday-day {
    background-color: #e3f0ff !important; /* Biru muda transparan */
}
.fc-daygrid-day.monday-day .fc-daygrid-day-number {
    color: #007bff !important; /* Biru teks */
    font-weight: bold;
}
body.index .legend-color-box.monday-day,
body.dashboard .legend-color-box.monday-day,
body.user-carapemesanan .legend-color-box.monday-day {
    background-color: #e3f0ff;
    border: 1.5px solid #007bff;
}

@media (max-width: 900px) {
    body.index .tanggal-reservasi-section-flex {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }
    body.index .legend-container {
        max-width: 100%;
        min-width: 0;
        width: 100%;
        margin-top: 1.5rem;
        align-self: auto;
    }
}

/* ================= USER PROFIL.PHP INLINE STYLES (DIPINDAH DARI <style> DI FILE) =================== */
body.profil {
    background-color: #f8f9fa;
}
.container {
    max-width: 700px;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}
.form-label {
    font-weight: bold;
    color: #555;
}
.form-control {
    border-radius: 5px;
    padding: 10px 15px;
}
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: bold;
}
.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}
.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: bold;
}
.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}
.alert {
    border-radius: 5px;
    margin-bottom: 20px;
}
.password-input-group {
    position: relative;
}
.toggle-password {
    position: absolute;
    right: 15px;
    top: 65%; /* Adjusted to center vertically with label */
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    font-size: 1.1em;
}
.toggle-password:hover {
    color: #007bff;
}

body.index .sambutan {
    margin-bottom: 2rem !important;
}
body.index .card-perkenalan {
    margin-top: 1.5rem !important;
    margin-bottom: 2.5rem !important;
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 768px) {
    body.index .card-perkenalan,
    body.user-tentangkami .card-perkenalan {
        border-radius: 12px;
        margin: 1.2rem 0.2rem;
        padding: 0.7rem 0.2rem;
    }
    body.index .baris-perkenalan,
    body.user-tentangkami .baris-perkenalan {
        flex-direction: column !important;
        gap: 0.5rem;
    }
         body.index .kolom-gambarperkenalan,
     body.user-tentangkami .kolom-gambarperkenalan {
         padding: 10px 0 0 0;
         justify-content: center;
         align-items: center;
         width: 100%;
         min-height: 200px;
     }
     body.index .kolom-gambarperkenalan .fas.fa-utensils,
     body.user-tentangkami .kolom-gambarperkenalan .fas.fa-utensils {
         font-size: 4rem !important;
     }
     body.index .kolom-gambarperkenalan h2,
     body.user-tentangkami .kolom-gambarperkenalan h2 {
         font-size: 1.5rem !important;
     }
    body.index .img-perkenalan,
    body.user-tentangkami .img-perkenalan {
        width: 100%;
        height: 180px;
        border-radius: 10px 10px 0 0;
        margin: 0 auto 0 auto;
        object-fit: cover;
    }
    body.index .kolom-teks-perkenalan,
    body.user-tentangkami .kolom-teks-perkenalan {
        padding: 10px 8px 18px 8px;
        width: 100%;
        align-items: flex-start;
    }
    body.index .textperkenalan,
    body.user-tentangkami .textperkenalan {
        font-size: 1.2rem;
        padding: 0 2px;
        margin-bottom: 10px;
        text-align: left;
    }
    body.index .text-isiperkenalan,
    body.user-tentangkami .text-isiperkenalan {
        font-size: 1rem;
        padding: 0 2px;
        text-align: left;
    }
}

body.reservasi .container {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    border: none !important;
    padding: 0;
    max-width: 1400px !important;
}

.form-reservasi-wrapper, .ringkasan-pesanan-wrapper {
    background: rgba(255,255,255,0.85);
    box-shadow: 0 4px 24px 0 rgba(139,106,73,0.10), 0 1.5px 6px 0 rgba(139,106,73,0.08);
    border-radius: 18px;
    border: none;
    padding: 2.5rem 2rem 2rem 2rem;
    backdrop-filter: blur(2px);
    width: 100%;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 1400px) {
    .form-reservasi-wrapper, .ringkasan-pesanan-wrapper {
        max-width: 98vw;
    }
}
@media (max-width: 992px) {
    .form-reservasi-wrapper, .ringkasan-pesanan-wrapper {
        max-width: 100%;
        padding: 1.2rem 0.5rem;
    }
    body.reservasi .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    body.reservasi .row {
        flex-direction: column !important;
        gap: 1.2rem;
    }
    .form-reservasi-wrapper, .ringkasan-pesanan-wrapper {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        border-radius: 10px;
        padding: 1.1rem 0.3rem;
    }
}
@media (max-width: 768px) {
    .form-reservasi-wrapper, .ringkasan-pesanan-wrapper {
        padding: 1rem 0.2rem;
        border-radius: 10px;
    }
}
@media (max-width: 576px) {
    .form-reservasi-wrapper, .ringkasan-pesanan-wrapper {
        padding: 0.7rem 0.1rem;
    }
    .form-reservasi-wrapper .form-label,
    .ringkasan-pesanan-wrapper .card-header {
        font-size: 1rem;
    }
    .form-reservasi-wrapper .btn,
    .ringkasan-pesanan-wrapper .btn {
        font-size: 0.97rem;
        padding: 0.5rem 0.7rem;
    }
    .ringkasan-pesanan-wrapper .table th,
    .ringkasan-pesanan-wrapper .table td {
        font-size: 0.95rem;
        padding: 0.3rem 0.2rem;
    }
}

/* ==================== STYLING UNTUK USER MENU KERANJANG ==================== */
/* Memastikan card di user_menukeranjang juga seragam */
body.halaman-menu .produk-card.card.produk {
    width: 320px;
    min-width: 320px;
    height: 450px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.halaman-menu .produk-card.card.produk .card-body.produk-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

body.halaman-menu .produk-card.card.produk .gambar-wrapper {
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.halaman-menu .produk-card.card.produk .gambar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

body.halaman-menu .produk-card.card.produk .p-4 {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
    padding: 20px !important;
}

body.halaman-menu .produk-card.card.produk .nama-menu {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-family: 'Playfair Display', serif;
    text-align: center;
    line-height: 1.3;
    min-height: 2.6em;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.halaman-menu .produk-card.card.produk .deskripsi {
    font-size: 0.95rem;
    color: #666;
    flex: 1;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
    min-height: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

body.halaman-menu .produk-card.card.produk .produk-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: auto;
    min-height: 60px;
}

body.halaman-menu .produk-card.card.produk .produk-harga {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    flex: 1;
    text-align: left;
}

body.halaman-menu .produk-card.card.produk .btn-pesan {
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    min-width: 100px;
}

body.halaman-menu .produk-card.card.produk .btn-pesan:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Responsive untuk user_menukeranjang */
@media (max-width: 992px) {
    body.halaman-menu .produk-card.card.produk {
        width: 300px;
        min-width: 300px;
        height: 420px;
    }
    
    body.halaman-menu .produk-card.card.produk .gambar-wrapper {
        height: 180px;
    }
    
    body.halaman-menu .produk-card.card.produk .p-4 {
        min-height: 240px;
        padding: 18px !important;
    }
    
    body.halaman-menu .produk-card.card.produk .nama-menu {
        font-size: 1.3rem;
        min-height: 2.4em;
    }
    
    body.halaman-menu .produk-card.card.produk .deskripsi {
        font-size: 0.9rem;
        min-height: 2.8em;
    }
    
    body.halaman-menu .produk-card.card.produk .produk-footer {
        min-height: 55px;
        padding-top: 12px;
    }
}

@media (max-width: 768px) {
    body.halaman-menu .produk-card.card.produk {
        width: 280px;
        min-width: 280px;
        height: 400px;
    }
    
    body.halaman-menu .produk-card.card.produk .gambar-wrapper {
        height: 160px;
    }
    
    body.halaman-menu .produk-card.card.produk .p-4 {
        min-height: 240px;
        padding: 16px !important;
    }
    
    body.halaman-menu .produk-card.card.produk .nama-menu {
        font-size: 1.2rem;
        min-height: 2.2em;
    }
    
    body.halaman-menu .produk-card.card.produk .deskripsi {
        font-size: 0.85rem;
        min-height: 2.6em;
    }
    
    body.halaman-menu .produk-footer {
        min-height: 50px;
        padding-top: 10px;
    }
    
    body.halaman-menu .produk-card.card.produk .btn-pesan {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 90px;
    }
}

@media (max-width: 576px) {
    body.halaman-menu .produk-card.card.produk {
        width: 100%;
        min-width: 280px;
        max-width: 320px;
        height: 380px;
    }
    
    body.halaman-menu .produk-card.card.produk .gambar-wrapper {
        height: 140px;
    }
    
    body.halaman-menu .produk-card.card.produk .p-4 {
        min-height: 240px;
        padding: 14px !important;
    }
    
    body.halaman-menu .produk-card.card.produk .nama-menu {
        font-size: 1.1rem;
        min-height: 2em;
    }
    
    body.halaman-menu .produk-card.card.produk .deskripsi {
        font-size: 0.8rem;
        min-height: 2.4em;
    }
    
    body.halaman-menu .produk-card.card.produk .produk-footer {
        min-height: 45px;
        padding-top: 8px;
    }
    
    body.halaman-menu .produk-card.card.produk .btn-pesan {
        padding: 8px 16px;
        font-size: 0.85rem;
        min-width: 80px;
    }
    
    body.halaman-menu .produk-card.card.produk .produk-harga {
        font-size: 1.2rem;
    }
}

