body {
    font-family: sans-serif;
    margin: 0;
    overflow-x: hidden; /* Mencegah overflow horizontal */
    background-color: #ffdaad;
    
}

#hero {
    height: 100vh;
    position: relative;
    color: white;
}

.hero-slider, .hero-slider .swiper-wrapper, .hero-slider .swiper-slide {
    height: 100%;
    width: 100%;
}

.hero-slider .swiper-slide {
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-slider .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    max-width: 80%;
}

#produk {
    padding: 4rem 0;
    text-align: center;
    background-color: #f8f9fa;
}

.produk-slider {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px; /* Memberi ruang untuk tombol navigasi */
    position: relative; /* Penting untuk penempatan tombol navigasi */
}

.produk-slider .swiper-slide {
    display: flex;
    justify-content: center;
    padding-bottom: 2rem; /* Ruang untuk pagination/scrollbar jika ada */
}

.produk-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    width: 280px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.produk-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}


.produk-item img {
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.produk-item h3 {
    margin: 0.5rem 0;
}

.produk-item p {
    font-size: 1.1rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 1rem;
}

.produk-item button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.produk-item button:hover {
    background-color: #218838;
}

/* Penyesuaian Tombol Navigasi Swiper */
.swiper-button-next, .swiper-button-prev {
    color: #007bff;
}

#pembelian {
    padding: 4rem 2rem;
    text-align: center;
}

#form-pembelian {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

#form-pembelian label, 
#form-pembelian input, 
#form-pembelian textarea,
#form-pembelian h3,
#pembelian label,
#pembelian select {
    display: block;
    margin-bottom: 0.5rem;
}

#form-pembelian input,
#form-pembelian textarea,
#pembelian select {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    box-sizing: border-box;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

#form-pembelian button,
#pembelian button {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 0.5rem; /* Added margin for new buttons */
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

#btn-share-location {
    background-color: #6c757d;
}
#btn-share-location:hover {
    background-color: #5a6268;
}

#location-status {
    font-size: 0.9em;
    color: #6c757d;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 2rem 0;
}

#price-display {
    margin-top: 1rem;
    font-size: 1.2em;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 1rem;
}

#price-display span {
    color: #007bff;
}

#btn-add-to-cart {
    background-color: #28a745;
}
#btn-add-to-cart:hover {
    background-color: #218838;
}

#cart-items {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    min-height: 50px;
    text-align: left;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item span {
    flex-grow: 1;
}

.cart-item .remove-from-cart {
    width: auto;
    padding: 0.3rem 0.6rem;
    margin-left: 1rem;
    background-color: #dc3545;
    color: white;
    font-size: 0.8em;
}
.cart-item .remove-from-cart:hover {
    background-color: #c82333;
}

#cart-total {
    display: block;
    text-align: right;
    font-size: 1.3em;
    font-weight: bold;
    margin-top: 1rem;
    color: #007bff;
}

#btn-finish-order {
    background-color: #007bff;
    margin-top: 1rem;
}
#btn-finish-order:hover {
    background-color: #0056b3;
}

#btn-clear-cart {
    background-color: #dc3545;
}
#btn-clear-cart:hover {
    background-color: #c82333;
}

#order-summary {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

#order-summary.hidden {
    display: none;
}

.summary-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    text-align: left;
}

.summary-content h2,
.summary-content h3 {
    text-align: center;
    margin-bottom: 1rem;
}

.summary-content p {
    margin-bottom: 0.5rem;
}

.summary-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.summary-content ul li {
    padding: 0.3rem 0;
    border-bottom: 1px dashed #eee;
}

.summary-content ul li:last-child {
    border-bottom: none;
}

.summary-content button {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-bottom: 0.5rem;
}

#btn-whatsapp {
    background-color: #28a745; /* WhatsApp green */
    color: white;
    border: none;
}

#btn-whatsapp:hover {
    background-color: #218838;
}

#btn-batal { /* This targets the cancel button in the summary */
    background-color: #dc3545;
    color: white;
    border: none;
}

#btn-batal:hover {
    background-color: #c82333;
}

.hidden {
    display: none;
}
/* Admin Page Specific Styles - Enhanced Professional Look */

/* General Admin Layout */
body.admin-page {
    background-color: #f8f9fa; /* Light background */
    color: #343a40; /* Darker text */
    line-height: 1.6;
    font-size: 16px;
}

#admin-main {
    max-width: 1400px;
    margin: 1.5rem auto;
    padding: 1rem;
    display: grid;
    grid-template-columns: 3fr 1fr; /* Larger section for orders, smaller for summary */
    gap: 2rem;
    text-align: left;
}

@media (max-width: 992px) {
    #admin-main {
        grid-template-columns: 1fr; /* Stack on medium screens */
    }
}

/* Header Styling */
header {
    background-color: #007bff; /* Primary blue */
    color: white;
    padding: 1.2rem 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header h1 {
    margin: 0;
    font-size: 2em;
    flex-grow: 1; /* Allows h1 to take available space */
    text-align: left;
    padding-left: 1rem;
}

header nav {
    margin: 0;
    padding-right: 1rem;
}

header nav a {
    color: white;
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 5px;
    transition: background-color 0.2s, border-color 0.2s;
    font-weight: 500;
}

header nav a:hover {
    background-color: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.6);
}

/* Section Styling (Order List & Monthly Summary) */
#order-list-section, #monthly-summary-section {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05); /* Softer shadow */
}

#order-list-section h2, #monthly-summary-section h2 {
    text-align: center;
    color: #007bff; /* Primary blue */
    margin-bottom: 1.8rem;
    font-size: 1.8em;
    font-weight: 600;
}

/* Filter Styling */
#filter-status {
    margin-bottom: 1.5rem;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.8rem;
}

#filter-status label {
    margin: 0;
    font-weight: 600;
    color: #495057;
}

#filter-status select {
    padding: 0.6rem 1rem;
    border-radius: 5px;
    border: 1px solid #ced4da;
    background-color: #fff;
    cursor: pointer;
    font-size: 1em;
}

/* Order Card Styling */
.order-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04); /* Subtle shadow */
    transition: transform 0.2s ease-in-out;
}

.order-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.order-card h3 {
    color: #0056b3; /* Darker blue for titles */
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.4em;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.8rem;
}

.order-card p {
    margin-bottom: 0.5rem;
    font-size: 0.95em;
    color: #495057;
}

.order-card strong {
    color: #343a40;
}

.order-card ul {
    list-style: none; /* Remove default bullet */
    padding-left: 0;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-top: 1px dashed #e9ecef;
    padding-top: 1rem;
}

.order-card ul li {
    background-color: #e9f5ff; /* Light blue background for items */
    padding: 0.6rem 1rem;
    margin-bottom: 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.order-card ul li:last-child {
    margin-bottom: 0;
}

.order-status {
    font-weight: 700;
    padding: 0.3em 0.7em;
    border-radius: 20px; /* Pill shape */
    color: white;
    font-size: 0.85em;
    text-transform: capitalize;
}

.order-status.pending {
    background-color: #ffc107; /* warning yellow */
    color: #343a40;
}
.order-status.completed {
    background-color: #28a745; /* success green */
}
.order-status.cancelled {
    background-color: #dc3545; /* danger red */
}

/* Order Actions */
.order-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    margin-top: 1.5rem;
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.order-actions select {
    padding: 0.6rem 1rem;
    border-radius: 5px;
    border: 1px solid #ced4da;
    background-color: #fff;
    cursor: pointer;
    font-size: 0.9em;
}

.order-actions button {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.1s;
}

.order-actions button:active {
    transform: translateY(1px);
}

.order-actions .delete-order-btn {
    background-color: #dc3545;
    color: white;
}
.order-actions .delete-order-btn:hover {
    background-color: #c82333;
}

/* Monthly Summary Styles */
#summary-container {
    padding: 1rem 0;
}

#summary-container ul {
    list-style: none;
    padding: 0;
}

#summary-container ul li {
    background-color: #e2f0ff; /* Light blue for summary items */
    padding: 1rem 1.2rem;
    margin-bottom: 0.8rem;
    border-radius: 8px;
    border: 1px solid #cce5ff;
    font-size: 0.95em;
    color: #0056b3;
}

#summary-container ul li strong {
    color: #004085;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    #admin-main {
        padding: 0.5rem;
        gap: 1rem;
    }

    #order-list-section, #monthly-summary-section {
        padding: 1rem;
    }

    header {
        flex-direction: column;
        padding: 0.8rem;
    }

    header h1 {
        text-align: center;
        padding-left: 0;
        font-size: 1.7em;
    }

    header nav {
        padding-right: 0;
        margin-top: 1rem;
    }
}

/* New styles for location input and map preview */
#location {
    margin-bottom: 1rem;
}

#mapPreview {
    width: 100%;
    height: 300px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    margin-bottom: 1rem;
}