* {
    box-sizing: border-box;
    /* Pastikan padding dan border termasuk dalam ukuran elemen */
}

body {
    font-family: "Nunito", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

h1,
h2,
h3,
.judul {
    /* Untuk judul */
    font-family: "Poppins", Arial, sans-serif;
}

/* Styling dasar untuk modal */
.modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    width: 350px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.logo-image {
    width: 50px;
    height: 50px;
}

.logo-title {
    font-weight: bold;
    color: #09431f;
    font-family: "Signika", sans-serif;
    font-size: 2em;
}

#modalTitle {
    font-size: 18px;
    margin-bottom: 20px;
}


@keyframes scaleUp {
    from {
        transform: scale(0.8);
        opacity: 0.5;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Logo dan branding */

/* .brand-logo {
    width: 40px; /* Ukuran logo kecil */
/* height: 40px;
    object-fit: contain; /* Menjaga proporsi logo */
/* } */

.brand-name {
    font-size: 22px;
    font-weight: bold;
    color: #09431f;
    font-family: "Signika", sans-serif;
    /* Font Signika */
}

/* Input group styling */
.input-group {
    margin-bottom: 15px;
    text-align: left;
}

.input-group input {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #f1a760 !important;
    border-radius: 5px;
}

.input-group input:focus {
    border-color: 1px solid #f1a760;
    outline: none;
}

.input-group label {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
    display: block;
}

/* Grup tombol */
.button-group {
    text-align: center;
}

.button-group button {
    background-color: #d4a94b;
    /* Warna emas */
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.button-group button:hover {
    background-color: #b8913f;
}

/* Tombol Simpan */
.save-button {
    flex: 1;
    padding: 12px;
    background-color: #f1a760;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.save-button:hover {
    background-color: #e68b3a;
}

/* Tombol Cancel */
.cancel-button {
    flex: 1;
    padding: 12px;
    background-color: #ddd;
    color: #555;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cancel-button:hover {
    background-color: #bbb;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    /* Use flexbox for better alignment */
    align-items: center;
    justify-content: center;
}

input {
    width: 100%;
    padding: 10px;
    border: 2px solid;
    border-radius: 5px;
    font-size: 16px;
    background-color: transparent;
    outline: none;
    transition: all 0.3s ease;
}

.input-group label {
    position: absolute;
    top: 35%;
    left: 10px;
    transform: translateY(-10%);
    background-color: #fff;
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 16px;
}

input:focus+label,
input:valid+label {
    top: 0;
    font-size: 16px;
    color: #c9994c;
}


/* .modal-content img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
} */

.modal-content img {
    width: 40px;
    /* Atur ukuran gambar lebih kecil */
    height: 40px;
    /* Menjaga proporsi gambar */
    border-radius: 10px;
    margin-bottom: 15px;
    object-fit: contain;
    /* Agar gambar tetap proporsional */
}


.modal-content h2 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #333;
}

/* Styling untuk label */
.modal-content label {
    display: block;
    text-align: left;
    margin-bottom: 5px;
    font-size: 14px;
    color: #555;
}

/* Styling untuk input */
.modal-content input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    color: #333;
    transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

/* Efek pada input kosong */
.modal-content input[type="text"]:placeholder-shown {
    border-color: #ccc;
    background-color: #f2f2f2;
    transform: scale(1);
}

/* Efek pada input yang telah diisi */
.modal-content input[type="text"]:valid {
    border-color: #c9994c;
    /* Warna border saat terisi */
    background-color: #fff;
    /* Warna latar belakang saat terisi */
    transform: scale(1.02);
    /* Sedikit memperbesar saat terisi */
}

/* Styling untuk tombol simpan */
.modal-content button {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    font-size: 16px;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.save-button {
    background-color: #c9994c;

}

.save-button:hover {
    background-color: #a57b32;
}

/* Style for the "Batal" button */
.cancel-button {
    background-color: #dc3545;
    /* Red color for danger */
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
}

.cancel-button:hover {
    background-color: #c82333;
    /* Darker red on hover */
}

.container-wrapper {
    display: flex;
    gap: 20px;
    max-width: 1600px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.main-container {
    flex: 3;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    background-color: #ffffff;
    margin: 20px auto;
    /* Menggunakan margin auto untuk membuat elemen di tengah */
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    /* Tambahkan bayangan untuk efek visual */
    border-radius: 10px;
    /* Opsional: menambahkan border-radius untuk tampilan lebih lembut */
}

.main-container,
.receipt-container {
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px 10px;
    /* Mengatur gap antara baris dan kolom */
    margin-bottom: 20px;
}

.menu-item {
    background-color: white;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* Efek hover untuk item menu */
.menu-item:hover {
    transform: translateY(-5px);
    /* Memberikan efek melayang */
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    /* Tambahkan shadow saat hover */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-image {
    border-top-left-radius: 10px;
    /* Sesuaikan nilai sesuai kebutuhan */
    border-top-right-radius: 10px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    object-fit: cover;
    height: 250px;
    /* Sesuaikan tinggi sesuai kebutuhan */
    width: 100%;
}

.total-summary {
    display: none;
}

.add-to-cart,
.quantity-controls {
    align-self: center;
    /* Menjaga tombol tetap di tengah */
    margin: 10px 0;
    /* Jarak dari elemen di atasnya */
}

.price {
    margin-bottom: 10px 0;
    /* Beri jarak antara harga dan kuantitas */
    font-size: 16px;
    /* Sesuaikan ukuran font jika diperlukan */
}

.hidden {
    display: none;
}

.add-to-cart {
    background-color: #c9994c;
    color: #fff;
    border: none;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 4px;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    font-size: 16px;
}

.add-to-cart:hover {
    background-color: #a57b32;
}

.quantity-controls {
    display: none;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    flex-grow: 1;
}

.qty-btn {
    background-color: #c9994c;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
}

.qty-btn:hover {
    background-color: #a57b32;
}

.quantity-controls input[type="number"] {
    width: 60px;
    text-align: center;
    font-size: 16px;
    border: 1px solid #c9994c;
    border-radius: 5px;
    margin: 0 5px;
    height: 40px;
}

.quantity-controls input[type="number"]::-webkit-outer-spin-button,
.quantity-controls input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.total-container {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    background-color: #ffffff;
    margin: 20px auto;
    /* Menggunakan margin auto untuk membuat elemen di tengah */
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    /* Tambahkan bayangan untuk efek visual */
    border-radius: 10px;
    /* Opsional: menambahkan border-radius untuk tampilan lebih lembut */
    text-align: center;
}

.total-container h2 {
    color: #0e6b37;
    font-size: 1.5em;
    margin: 0;
}

.total-container .title {
    padding: 10px 0;
    border-bottom: 1px dotted #ddd;
}

.order-grid {
    display: grid;
    grid-template-columns: 50% 20% 30%;
    text-align: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px 0;
    border-bottom: 1px dotted #ddd;
}

.order-grid .menu-column {
    text-align: left;
}

#orderList {
    display: contents;
    padding: 0 20px;
    margin-top: 20px;

}

#orderList li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;

}

#orderList .order-item {
    display: contents;
}

#orderList .order-menu {
    text-align: left;
}

#orderList .order-quantity,
#orderList .order-price {
    text-align: center;
}

.totalPayment {
    display: flex;
    justify-content: space-between;
    /* Menempatkan teks total di kiri dan angka di kanan */
    align-items: center;
    padding: 10px 0;
    margin-bottom: 5px;
}

.payment-method {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    /* Garis di atas payment-method */
    padding-bottom: 20px;
}

.payment-method label {
    font-weight: bold;
    color: #555;
    flex: 1;
    text-align: left;
    white-space: nowrap;
}

.payment-method select {
    padding: 8px;
    border: 2px solid #c9994c;
    border-radius: 10px;
    font-size: 1em;
    background-color: white;
    color: #c9994c;
    width: auto;
    text-align-last: left;
    min-width: 80px;
}

/* Style untuk opsi dalam dropdown */
option {
    background-color: white;
    /* Latar belakang putih untuk opsi */
    color: #c9994c;
    /* Teks berwarna oren untuk opsi */
    border-radius: 5px;
}

/* Hover style untuk opsi dalam dropdown */
.payment-method select:hover option {
    background-color: #c9994c;
    /* Latar belakang opsi saat hover */
    color: white;
    /* Teks berwarna putih saat hover */
}

.edit-info-button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

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

/* Animasi untuk modal yang muncul */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animasi untuk modal yang muncul */
@keyframes modalFadeOut {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content {
    animation: modalFadeIn 0.3s ease;
}

.checkout-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #09431f;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    margin-top: 10px;
}

.checkout-btn:hover {
    background-color: #0e6b37;
}

.whatsapp-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #25d366;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    margin-top: 10px;
}

.whatsapp-button:hover {
    background-color: #20b358;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: block;
    /* Tampilkan modal */
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.modal-content img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
}

.modal-content input[type="text"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.menu-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Teks akan berada di sebelah kiri */
    padding: 0 15px;
    /* Jarak ke tepi card, sesuaikan sesuai kebutuhan */
}


.menu-footer h3,
.menu-footer .price {
    margin: 5px 0;
}


/* Responsif tampilan .menu-item */
@media only screen and (max-width: 600px) {
    .menu-grid {
        grid-template-columns: 1fr;
        /* Satu kolom di ponsel */
    }

    .menu-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        max-width: 100%;
        max-height: 100px;
    }


    .menu-image {
        max-width: 30%;
        height: 100%;
        border-top-left-radius: 10px;
        border-bottom-left-radius: 10px;
        border-top-right-radius: 0px;
        flex-shrink: 0;
    }

    .menu-footer {
        flex: 1;
        display: flex;
        padding-left: 0;
        padding-top: 15px;
        padding-bottom: 10px;
        flex-direction: column;
    }

    .menu-footer h3,
    .menu-footer .price {
        margin-bottom: 0;
        font-size: 14px;
        align-items: flex-start;
    }

    .hidden {
        display: none;
    }

    .add-to-cart {
        background-color: #c9994c;
        color: #fff;
        border: none;
        padding: 8px 15px;
        cursor: pointer;
        border-radius: 4px;
        align-self: flex-end;
        font-size: 10px;
    }

    .quantity-controls {
        display: none;
        justify-content: right;
        align-self: flex-end;
        margin-bottom: 10px;
        flex-grow: 1;
    }

    .qty-btn {
        background-color: #c9994c;
        color: white;
        border: none;
        padding: 10px;
        cursor: pointer;
        font-size: 10px;
        height: 25px;
        display: flex;
        border-radius: 5px;
    }

    .quantity-controls input[type="number"] {
        width: 60px;
        text-align: center;
        font-size: 10px;
        border: 1px solid #c9994c;
        border-radius: 5px;
        margin: 0 5px;
        height: 25px;
    }

    /* Total Summary Container */
    .total-summary {
        position: fixed;
        bottom: 0;
        width: 100%;
        background-color: #fff;
        /* White background */
        box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
        display: flex;
        justify-content: space-around;
        padding: 10px;
        z-index: 1000;
    }

    .main-container {
        padding-bottom: 60px;
        /* Tambahkan padding agar konten tidak tertutup total-summary */
    }

    /* Content inside Total Summary */
    .total-summary-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background-color: #c9994c;
        color: #fff;
        /* White text color */
        padding: 10px 15px;
        border-radius: 5px;
        gap: 70px;
    }

    .right {
        align-items: flex-start;
    }

    .left {
        display: flex;
        align-items: flex-end;
    }

    .total-summary .total-items {
        font-weight: bold;
        font-size: 16px;
        /* text-align: start; */
    }

    .total-summary .left .total-price {
        font-weight: bold;
        font-size: 16px;
        color: #0e6b37;
        text-align: end;
        margin-bottom: 4px
    }

    /* Checkout Icon */
    .checkout-icon {
        font-size: 1.2rem;
        margin-left: 10px;
        color: white;
        padding: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
    }
}

.user-info {
    margin-left: auto;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-family: "Signika", Arial, sans-serif;
}

.user-info .user-name {
    text-decoration: none;
    color: #805700;
    font-weight: 500;
    font-size: large;
    font-family: "Signika", Arial, sans-serif;
    position: relative;
}

.user-info .user-name i {
    margin-right: 8px;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .brand {
    display: flex;
    /* Mengelompokkan logo dan brand name dalam satu baris */
    align-items: center;
}

.logo {
    width: 50px;
    /* Sesuaikan dengan ukuran logo */
    height: auto;
    margin-right: 10px;
    /* Memberikan jarak antara logo dan nama brand */
}

/* Navbar Styles */
.navbar {
    display: flex;
    gap: 10px;
    margin-left: auto;
    padding-right: 40px;
}

.navbar a {
    text-decoration: none;
    color: #4a3c31;
    font-size: 16px;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.search-bar {
    flex: 1;
    margin-left: 20px;
    /* Jarak antara search bar dan brand */
}

header .search-bar {
    flex-grow: 1;
    margin-left: 20px;
}

/* Responsive Header */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 10px;
    }

    header h1,
    header .logo {
        padding-left: 10px;
        /* Sesuaikan padding kiri di layar kecil */
    }

    .navbar a {
        width: 100%;
        text-align: center;
    }
}


/* Untuk tampilan perangkat kecil */
@media (max-width: 768px) {
    .modal-content {
        width: 80%;
        /* Lebar modal lebih kecil */
        padding: 15px;
        /* Padding lebih kecil */
    }
}

/* Untuk tampilan perangkat sangat kecil (ponsel) */
@media (max-width: 480px) {
    .modal-content {
        width: 90%;
        padding: 10px;
    }
}
