/* Update color variables */
:root {
    --primary-blue: #305ddd; /* Biru dari logo */
    --primary-red: #e31e24; /* Merah dari logo */
    --secondary-blue: #6b86d4; /* Biru lebih terang */
    --dark-blue: #2a3b6b; /* Biru lebih gelap */
    --light-gray: #9ca3af; /* Abu-abu terang */
    --dark-gray: #333; /* Abu-abu gelap */
    --primary-color: #f7f7f7;
    --accent-color: #ffb22c;
    --secondary-red: #ef3b41; /* Warna merah yang lebih terang */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    /* -webkit-touch-callout: none;  */
}

/* Remove focus outline */
button,
a,
input,
textarea,
select,
[tabindex] {
    outline: none !important;
}

.section-divider {
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        var(--primary-blue),
        transparent
    );
    margin: 30px auto;
    width: 80%;
    max-width: 600px;
}

/* Allow selection for specific elements if needed */
.allow-select {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Make buttons feel more like native */
button,
.button,
[type="button"],
[type="submit"] {
    -webkit-appearance: none;
    appearance: none;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    overflow-y: auto;
    /*background-color: #000;*/
    /*color: white;*/
}

.app-container {
    width: 100%;
    max-width: 480px; /* Standard mobile width */
    margin: 0 auto; /* Center on screen */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); /* Optional: adds a subtle shadow */
    min-height: 100vh;
    position: relative;
    background-color: var(--primary-color);
    overflow-x: hidden; /* Prevent horizontal scrolling */
    overflow-y: visible;
}

/* Header */
.main-header {
    background: rgb(255, 255, 255);
    background: linear-gradient(
        156deg,
        rgba(255, 255, 255, 1) 0%,
        rgb(220, 220, 220) 100%
    );
    padding: 0.6rem 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    border-radius: 0 0 10px 10px !important; /* Sudut membulat di atas */
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.left-section {
    display: flex;
    align-items: center;
}

.right-section {
    min-width: 80px; /* Reserved space for future content */
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.logo {
    height: 16px;
    width: 120px;
    object-fit: contain;
}

.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(75, 105, 191, 0.1);
    border: none;
    color: var(--primary-blue);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.theme-toggle-btn:hover {
    background-color: rgba(75, 105, 191, 0.2);
    transform: translateY(-2px);
}

.theme-toggle-btn i {
    font-size: 1rem;
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .logo {
        height: 24px;
    }

    .main-header {
        padding: 0.5rem; /* Reduce padding to make header smaller */
    }

    .theme-toggle-btn {
        width: 32px;
        height: 32px;
    }

    .theme-toggle-btn i {
        font-size: 0.9rem;
    }
}

/* Main Content */
.main-content {
    padding-bottom: 80px; /* Tambahkan padding bottom untuk mencegah content tertutup navigation menu */
}

.booking-section {
    padding: 1rem;
}

/* Tambahkan style untuk week navigation */
.week-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: black;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    color: black;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.nav-btn:hover {
    background-color: rgba(75, 105, 191, 0.1);
    border-radius: 4px;
}

.current-month {
    font-size: 1.2rem;
    font-weight: 500;
    color: black;
}

/* Update margin untuk date-selector karena ada elemen baru di atasnya */
.date-selector {
    margin-bottom: 1.5rem;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 0.5rem;
}

.dates {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.date-btn {
    background: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.date-btn.selected {
    background-color: var(--primary-blue);
    color: white;
    font-weight: 600;
}

/* Update Schedule Grid - Fix scrolling issue */
.schedule-grid {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0;
    background-color: #bcbcbc;
    max-height: 80vh;
    overflow-y: auto; /* Enable vertical scrolling for entire grid */
    border: 1px solid #bcbcbc;
    border-radius: 8px;
}

.courts-container {
    display: flex;
    flex-direction: column;
    overflow-x: auto; /* Only horizontal scroll for courts */
    overflow-y: hidden; /* No vertical scroll, handled by parent */
    width: 100%;
    position: relative;
    background-color: #bcbcbc;
}

/* Scrollbar styling for courts container (horizontal only) */
.courts-container::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.courts-container::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.courts-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.courts-container::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.court-headers {
    display: grid;
    min-width: max-content;
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #e0e0e0;
    border-bottom: 2px solid #bcbcbc;
}

.court-header {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
    height: 50px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    color: #4a4a4d;
    background-color: #e0e0e0;
    box-sizing: border-box;
    border-right: 1px solid #bcbcbc;
    font-size: 0.9rem;
}

.court-header:last-child {
    border-right: none;
}

.courts-grid {
    display: grid;
    min-width: min-content;
    background-color: #bcbcbc;
    /* Memastikan grid-template-columns diterapkan dengan benar melalui JavaScript */
}

/* Pastikan tinggi slot waktu dan court sama */
.time-slot,
.court-slot {
    height: 50px;
    min-height: 50px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-bottom: 1px solid #bcbcbc;
}

.time-slot {
    justify-content: flex-end;
    background-color: #e0e0e0;
    color: #4a4a4d;
    font-size: 0.9rem;
    border-right: 1px solid #bcbcbc;
    position: sticky;
    left: 0;
    z-index: 1;
    padding-right: 1rem;
    font-weight: 500;
}

/* Time slot header untuk alignment dengan court header */
.time-slot:first-child {
    background-color: #e0e0e0;
    border-bottom: 2px solid #bcbcbc;
    font-weight: 600;
    color: #4a4a4d;
}

.time-column {
    display: grid;
    gap: 1px;
    width: 100px;
    min-width: 100px;
    max-width: 100px;
    /* No overflow settings - will scroll with parent */
}

.time-slot {
    width: 100px;
    max-width: 100px;
    min-width: 100px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background-color: #e0e0e0;
    color: #4a4a4d;
    font-size: 0.9rem;
    border-right: 1px solid #bcbcbc;
    padding-right: 1rem;
    font-weight: 500;
    box-sizing: border-box;
}

.courts-grid {
    display: grid;
    gap: 1px;
    background-color: #bcbcbc;
}

.court-slot {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
    height: 50px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s;
    border-right: 1px solid #bcbcbc;
    font-size: 0.85rem;
    font-weight: 500;
    box-sizing: border-box;
}

.court-slot:last-child {
    border-right: none;
}

.court-slot.available:hover {
    background-color: rgba(48, 93, 221, 0.1);
    border-color: var(--primary-blue);
    transform: translateY(-1px);
}

.court-slot.booked {
    background-color: rgba(227, 30, 36, 0.1);
    color: var(--primary-red);
    cursor: not-allowed;
    border-color: var(--primary-red);
}

/* Reserved slot styling (membership reservation) */
.court-slot.reserved {
    background-color: rgba(255, 165, 0, 0.15);
    color: #ff8c00;
    cursor: not-allowed;
    border: 2px solid #ff8c00;
    font-weight: 600;
}

.reserved-text {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ff8c00;
}

/* Membership conflict styling */
.court-slot.membership-conflict {
    background-color: rgba(255, 165, 0, 0.1);
    color: #ff8c00;
    border-color: #ff8c00;
    cursor: not-allowed;
}

/* Booking conflict styling */
.court-slot.booking-conflict {
    background-color: rgba(227, 30, 36, 0.1);
    color: var(--primary-red);
    border-color: var(--primary-red);
    cursor: not-allowed;
}

/* Combined conflicts - show as dual style */
.court-slot.membership-conflict.booking-conflict {
    background: linear-gradient(
        135deg,
        rgba(255, 165, 0, 0.1) 0%,
        rgba(255, 165, 0, 0.1) 50%,
        rgba(227, 30, 36, 0.1) 50%,
        rgba(227, 30, 36, 0.1) 100%
    );
    border: 2px solid;
    border-image: linear-gradient(135deg, #ff8c00, var(--primary-red)) 1;
    color: #cc6600;
}

/* Past time slot styling */
.court-slot.past-time {
    background-color: rgba(128, 128, 128, 0.1);
    color: #888;
    border-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.past-time-text {
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
}

.court-slot.selected {
    background-color: rgba(48, 93, 221, 0.2);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 600;
    position: relative;
}

.court-slot.selected::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: var(--primary-blue);
}

.court-slot.just-selected {
    animation: addToCart 0.3s ease-out;
}

.court-slot.just-removed {
    animation: removeFromCart 0.3s ease-out;
}

@keyframes addToCart {
    0% {
        transform: scale(1);
        background-color: rgba(48, 93, 221, 0.2);
    }
    50% {
        transform: scale(1.05);
        background-color: rgba(48, 93, 221, 0.4);
    }
    100% {
        transform: scale(1);
        background-color: rgba(48, 93, 221, 0.2);
    }
}

@keyframes removeFromCart {
    0% {
        transform: scale(1);
        background-color: rgba(227, 30, 36, 0.2);
    }
    50% {
        transform: scale(0.95);
        background-color: rgba(227, 30, 36, 0.4);
    }
    100% {
        transform: scale(1);
        background-color: #f8f9fa;
    }
}

.booked-text {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    padding-top: 3rem; /* Beri ruang untuk city selector */
}

.calendar-icon-container {
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: color 0.7s ease-in-out;
}

.calendar-icon-container:hover {
    transition: color 0.7s ease-in-out;
    background-color: var(--light-gray);
}

.calendar-icon-container i {
    color: white;
    font-size: 1.5rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 1000px;
    border-radius: 8px;
    position: relative;
}

.modal-content h2 {
    font-size: 1.2rem;
}

.close-btn {
    position: absolute;
    top: 0.7rem;
    right: 1.8rem;
    font-size: 1.5rem;
    color: var(--light-gray);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}

.close-btn:hover {
    color: #000000;
}

.court-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.court-detail {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: left;
    position: relative;
    padding-bottom: 1rem;
    border: 1px solid rgba(75, 105, 191, 0.2);
}

.court-detail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.court-detail h3 {
    margin-bottom: 0.5rem;
    color: #000;
    font-weight: 800;
}

.court-detail p {
    color: #9ca3af;
    font-size: 0.9rem;
}

.court-description {
    color: #9ca3af;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.features-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.feature-tag {
    background: rgba(75, 105, 191, 0.3);
    color: var(--secondary-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
}

.court-price {
    color: var(--secondary-blue);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Mobile First Styles */
@media screen and (max-width: 768px) {
    .logo {
        height: 100px; /* Ukuran logo lebih kecil di mobile */
    }

    .title-section h2 {
        font-size: 1.2rem;
    }

    .title-section p {
        font-size: 0.8rem;
    }

    .calendar-icon-container {
        width: 40px;
        height: 40px;
    }

    .calendar-icon-container i {
        font-size: 1.2rem;
    }

    /* Week Navigation */
    .week-navigation {
        padding: 0.25rem;
        margin-bottom: 1rem;
    }

    .nav-btn {
        padding: 0.5rem;
        font-size: 0.8rem;
        color: var(--light-gray);
    }

    .current-month {
        text-align: center;
        font-size: 1rem;
        color: #0a1016;
    }

    /* Date Selector */
    .weekdays {
        font-size: 0.8rem;
    }

    .date-btn {
        padding: 0.25rem;
    }

    .date-btn .date {
        font-size: 1rem;
    }

    .date-btn .month {
        font-size: 0.7rem;
    }

    /* Schedule Grid */
    .schedule-grid {
        display: flex;
        width: 100%;
        align-items: start; /* Sejajarkan dari atas */
    }

    .time-slot,
    .court-slot {
        height: 60px;
        padding: 0.5rem;
    }

    .time-slot {
        font-size: 0.8rem;
    }

    .court-slot {
        font-size: 0.9rem;
    }

    .booked-text {
        font-size: 0.7rem;
    }

    /* Modal */
    .modal-content {
        margin: 2% auto;
        padding: 1rem;
        width: 95%;
    }

    .court-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .court-detail img {
        height: 150px;
    }

    .court-detail h3 {
        font-size: 1.1rem;
    }

    .court-detail p {
        font-size: 0.8rem;
    }

    .court-detail {
        padding: 1rem;
    }

    .features-container {
        margin: 0.75rem 0;
    }

    .feature-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }
}

/* Tambahkan scroll horizontal untuk court grid di mobile */
@media screen and (max-width: 480px) {
    .time-column {
        width: 100px;
        min-width: 100px;
        max-width: 100px;
        /* No overflow - scroll with parent */
    }

    .courts-container {
        overflow-x: auto;
        overflow-y: hidden; /* Vertical scroll handled by parent */
        -webkit-overflow-scrolling: touch;
    }

    .court-headers {
        min-width: max-content;
    }

    .courts-grid {
        min-width: max-content;
    }

    .time-slot,
    .court-slot,
    .court-header {
        height: 50px;
        width: 100px;
        min-width: 100px;
        max-width: 100px;
    }
}

/* Booking Modal Styles */
.booking-modal {
    max-width: 600px;
    height: 90vh;
    overflow-y: auto;
    padding-bottom: 120px; /* Tambahkan padding lebih besar agar tombol next tidak tertutup */
    background-color: #fff;
}

.booking-form {
    margin-top: 1rem;
}

/* Hapus overflow dan flex dari booking-content */
.booking-content {
    padding: 0;
}

/* Update booking summary agar tidak sticky */
.booking-summary {
    position: relative;
    background-color: white;
    padding-top: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 5rem;
    border-radius: 8px;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-top: 1px solid #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Booking Info Section */
.booking-info {
    background: #fff;
    padding: 0;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.booking-info p {
    margin: 0.75rem 0;
    color: var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

.booking-info p:first-child {
    margin-top: 0;
}

.booking-info p:last-child {
    margin-bottom: 0;
}

.booking-info p span {
    color: white;
    font-weight: 500;
}

/* Tambahkan style khusus untuk harga per jam */
#pricePerHour {
    color: var(--secondary-blue);
    font-weight: 600;
}

/* Snacks Section Styles */
.snacks-section {
    margin: 2rem -2rem;
    padding: 0 2rem;
}

.snacks-swiper {
    padding: 1rem 0;
}

.swiper-slide {
    height: auto;
    padding: 0.5rem;
}

.snack-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.snack-item img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1rem;
    background: white;
    border-radius: 8px;
    padding: 0.5rem;
}

.snack-item h4 {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: white;
}

.snack-item p {
    color: var(--secondary-blue);
    font-weight: 500;
    margin-bottom: 1rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.quantity-control input {
    color: black;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: var(--primary-blue);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: var(--dark-blue);
}

.qty-input {
    width: 40px;
    height: 32px;
    border: 1px solid var(--dark-gray);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    font-size: 0.9rem;
}

/* Swiper Navigation Styles */
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-blue);
}

.swiper-pagination-bullet {
    background: var(--primary-blue);
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .snacks-section {
        margin: 1rem -1rem;
        padding: 0 1rem;
    }

    .snack-item {
        padding: 0.75rem;
    }

    .snack-item img {
        width: 100px;
        height: 100px;
        margin-bottom: 0.75rem;
    }

    .snack-item h4 {
        font-size: 0.9rem;
        margin: 0.25rem 0;
    }

    .snack-item p {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .quantity-control {
        gap: 0.25rem;
    }

    .qty-btn {
        width: 28px;
        height: 28px;
    }

    .qty-input {
        width: 36px;
        height: 28px;
        font-size: 0.8rem;
    }

    /* Adjust swiper for mobile */
    .swiper-slide {
        width: 160px;
        padding: 0.25rem;
    }
}

/* Update modal untuk court details */
#courtDetailsModal .modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    max-width: 800px;
    margin: 10vh auto;
    overflow-y: scroll; /* Changed from auto to scroll */
    scrollbar-width: thin;
    padding: 1rem;
}

#courtDetailsModal .modal-content h2 {
    font-size: 1.3rem;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
    position: relative;
}

#courtDetailsModal .modal-content .modal-header {
    margin: 0;
}

#cartModal .modal-content h2 {
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
    position: relative;
}

#courtDetailsModal .modal-content::-webkit-scrollbar {
    width: 8px;
    background-color: #f5f5f5;
}

#courtDetailsModal .modal-content::-webkit-scrollbar-thumb {
    background-color: #c1c1c1;
    border-radius: 4px;
}

#courtDetailsModal .modal-content::-webkit-scrollbar-track {
    background-color: #f5f5f5;
    border-radius: 4px;
}

/* City Selector Styles */
.city-selector {
    padding-top: 1rem;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
}

.select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.select-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-red);
    z-index: 1;
    font-size: 1rem;
}

.city-selector select {
    padding: 8px 12px 8px 35px;
    border-radius: 6px;
    background-color: #e8e8e8;
    color: #505050;
    border: 1px solid var(--secondary-red);
    cursor: pointer;
    font-size: 0.9rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding-right: 30px;
}

/* Tambah custom arrow */
.select-wrapper::after {
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-red);
    pointer-events: none;
}

.city-selector select:focus {
    outline: none;
    border-color: var(--secondary-red);
}

/* Hover effect */
.city-selector select:hover {
    border-color: var(--secondary-red);
    background-color: rgba(75, 105, 191, 0.1);
}

/* Mobile adjustment */
@media screen and (max-width: 768px) {
    #courtDetailsModal .modal-content {
        margin: 10% auto; /* Adjust positioning */
        padding: 1.5rem; /* Reduce padding */
        max-height: 75vh; /* Slightly smaller on mobile */
    }

    .city-selector {
        width: 100%;
    }

    .select-wrapper {
        width: 100%;
    }

    .city-selector select {
        width: 100%;
        min-width: 100%; /* Override previous min-width */
        font-size: 0.8rem;
        padding: 6px 10px 6px 30px;
    }

    .title-section {
        padding-top: 4rem; /* Increase space for the selector */
    }

    .select-wrapper i {
        font-size: 0.9rem;
    }
}

/* Duration Control Styles */
.duration-container {
    display: flex;
    align-items: center !important;
    gap: 1.5rem;
    padding: 0.5rem 0;
}

.duration-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(75, 105, 191, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(75, 105, 191, 0.2);
    flex: 1;
}

.duration-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--primary-blue);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.duration-btn:hover {
    background: var(--dark-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.duration-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.duration-btn:disabled {
    background: var(--dark-gray);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.5;
}

.duration-btn i {
    font-size: 0.8rem;
}

.duration-display {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0 0.5rem;
}

#durationInput {
    width: 40px;
    text-align: center;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 0;
    margin-bottom: 2px;
}

.duration-labels {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.duration-unit {
    color: var(--secondary-blue);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.duration-range {
    color: var(--light-gray);
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Mobile adjustment */
@media screen and (max-width: 768px) {
    .duration-container {
        gap: 1rem;
    }

    .duration-control {
        padding: 6px 10px;
    }

    .duration-btn {
        width: 28px;
        height: 28px;
    }

    #durationInput {
        font-size: 1.2rem;
    }

    .duration-unit {
        font-size: 0.75rem;
    }

    .duration-range {
        font-size: 0.65rem;
    }
}

/* Payment Modal Styles */
.payment-modal {
    max-width: 500px;
    height: 90vh;
    overflow-y: auto;
    padding-bottom: 0; /* Hapus padding bottom */
    display: flex;
    flex-direction: column; /* Atur sebagai flex column */
}

.payment-form {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1; /* Biarkan form mengambil ruang yang tersedia */
    overflow-y: auto; /* Scroll hanya untuk bagian form */
    padding-bottom: 1rem; /* Beri sedikit space di bawah */
}

/* Payment Summary - perbaiki posisi sticky */
.payment-summary {
    position: sticky;
    bottom: 0;
    background-color: white;
    margin-top: auto; /* Push to bottom */
    padding: 1.5rem;
    border-top: 1px solid var(--dark-gray);
    border-radius: 10px 10px 0 0; /* Hanya rounded di atas */
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10; /* Pastikan di atas content lain */
    width: 100%; /* Full width */
    left: 0;
}

/* Update mobile styles */
@media screen and (max-width: 768px) {
    .payment-modal {
        width: 100%;
        height: 100vh;
        margin: 0;
        border-radius: 0;
        padding: 1rem;
    }

    .payment-form {
        gap: 1rem;
    }

    .payment-summary {
        margin: 1rem -1rem -1rem -1rem;
        padding: 1rem;
        border-radius: 0;
    }
}

/* Promo Section */
.promo-section {
    margin-bottom: 2rem;
}

.promo-input {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.promo-input input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--dark-gray);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: black;
}

.apply-promo-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary-blue);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.apply-promo-btn:hover {
    background: var(--dark-blue);
}

/* Payment Options */
.payment-options {
    margin-bottom: 2rem;
}

.payment-type {
    margin: 1rem 0;
}

.payment-choice {
    margin-bottom: 1rem;
}

.payment-choice label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--dark-gray);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-choice input[type="radio"] {
    display: none;
}

.payment-choice input[type="radio"]:checked + label {
    border-color: var(--primary-blue);
    background: rgba(75, 105, 191, 0.1);
}

.payment-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Payment Methods */
.payment-methods {
    margin-top: 2rem;
}

.method-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.method-choice {
    margin-bottom: 1rem;
}

.payment-method-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--dark-gray);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.payment-method-logo {
    width: 80px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bank-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.method-choice input[type="radio"] {
    display: none;
}

.method-choice input[type="radio"]:checked + .payment-method-label {
    border-color: var(--primary-blue);
    background: rgba(75, 105, 191, 0.1);
}

/* Payment Summary */
.payment-summary {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-gray);
}

.summary-details {
    margin: 1rem 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin: 0.5rem 0;
    color: var(--light-gray);
}

.summary-row.total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--dark-gray);
    color: white;
}

.summary-row.total #finalAmount {
    font-weight: 800;
    color: var(--primary-red);
}

/* CSS for voucher styling */
.voucher-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(145deg, #e9f7ef, #d4f1e2);
    border-radius: 50px;
    padding: 8px 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px dashed #28a745;
    margin-top: 8px;
    animation: pulse 2s infinite;
    max-width: fit-content;
}

.voucher-badge i {
    color: #28a745;
    margin-right: 8px;
    font-size: 16px;
}

.voucher-name {
    font-weight: 500;
    color: #28a745;
    margin-right: 8px;
}

.voucher-value {
    background-color: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.payment-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(227, 30, 36, 0.1);
    border-radius: 6px;
    margin: 1rem 0;
}

.payment-note i {
    color: var(--primary-blue);
}

.payment-note p {
    font-size: 0.9rem;
    color: var(--light-gray);
    margin: 0;
}

.confirm-payment-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.confirm-payment-btn:hover {
    background: var(--dark-blue);
}

/* Update existing button */
.next-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 1rem;
    margin-bottom: 5rem;
    transition: background 0.2s;
}

.next-btn:hover {
    background: var(--dark-blue);
}

/* Mobile Adjustments */
@media screen and (max-width: 768px) {
    .method-options {
        grid-template-columns: 1fr;
    }

    .payment-choice label,
    .method-choice label {
        padding: 0.75rem;
    }

    .promo-input {
        flex-direction: column;
    }

    .apply-promo-btn {
        width: 100%;
    }
}

/* Modal Header with Back Button */
.modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.modal-header h2 {
    margin: 0;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: var(--primary-blue);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.back-btn:hover {
    color: var(--secondary-blue);
    transform: translateX(-2px);
}

.back-btn i {
    font-size: 1rem;
}

/* Update payment modal padding */
.payment-modal {
    padding: 1.5rem;
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .back-btn {
        padding: 0.5rem;
    }

    .back-btn span {
        display: none;
    }
}

/* Payment Modal Mobile Styles */
@media screen and (max-width: 768px) {
    .payment-modal {
        width: 100%;
        height: 100vh;
        margin: 0;
        border-radius: 0;
        padding: 1rem;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    /* Promo Section */
    .promo-section h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .promo-input input {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .apply-promo-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    /* Payment Options */
    .payment-options h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .payment-choice label {
        padding: 0.75rem;
    }

    .payment-label {
        font-size: 0.9rem;
    }

    .payment-amount {
        font-size: 0.9rem;
    }

    /* Payment Methods */
    .payment-methods h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .method-choice label {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    .method-choice img {
        height: 32px;
    }

    /* Payment Summary */
    .payment-summary {
        padding: 1rem;
    }

    .payment-summary h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .summary-row {
        color: black;
        font-size: 0.9rem;
        margin: 0.4rem 0;
    }

    .summary-row.total {
        font-size: 1rem;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        color: black;
    }

    .summary-row #promoRow #promoAmount {
        color: var(--primary-red);
    }

    .payment-note {
        padding: 0.75rem;
    }

    .payment-note i {
        font-size: 1rem;
    }

    .payment-note p {
        font-size: 0.8rem;
    }

    .confirm-payment-btn {
        padding: 0.875rem;
        font-size: 1rem;
    }

    /* Adjust spacing */
    .payment-form {
        gap: 1.25rem;
    }

    .payment-type {
        margin: 0.75rem 0;
    }

    .payment-choice {
        margin-bottom: 0.75rem;
    }

    .method-options {
        gap: 0.75rem;
    }
}

/* Smaller mobile devices */
@media screen and (max-width: 375px) {
    .modal-header h2 {
        font-size: 1.3rem;
    }

    .payment-label,
    .payment-amount,
    .summary-row {
        font-size: 0.85rem;
    }

    .method-choice img {
        height: 28px;
    }

    .confirm-payment-btn {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    .payment-note p {
        font-size: 0.75rem;
    }
}

/* Upload Section Styles */
.upload-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
}

.upload-section h2 {
    color: var(--secondary-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.upload-section h2::before {
    content: "\f574";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 1.1rem;
}

.upload-area {
    border: 2px dashed rgba(75, 105, 191, 0.3);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1rem 0;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(75, 105, 191, 0.05);
}

.upload-area:hover {
    border-color: var(--primary-blue);
    background: rgba(75, 105, 191, 0.1);
    transform: translateY(-2px);
}

.upload-area.drag-over {
    border-color: var(--secondary-blue);
    background: rgba(75, 105, 191, 0.15);
    transform: scale(1.02);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-content i {
    font-size: 3.5rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.upload-area:hover .upload-content i {
    transform: translateY(-5px);
}

.upload-content p {
    font-size: 1.1rem;
    color: white;
    margin: 0;
    font-weight: 500;
}

.upload-content span {
    font-size: 0.85rem;
    color: var(--light-gray);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* Preview Styles */
.preview-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.preview-image {
    max-width: 100%;
    max-height: 250px;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.preview-info {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    width: 100%;
}

.file-name {
    color: white;
    margin: 0;
    font-weight: 500;
    font-size: 0.95rem;
}

.file-size {
    color: var(--light-gray);
    margin: 0.25rem 0 0 0;
    font-size: 0.85rem;
}

.change-file-btn {
    background: rgba(75, 105, 191, 0.1);
    border: 1px solid rgba(75, 105, 191, 0.2);
    color: var(--primary-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.change-file-btn:hover {
    background: rgba(75, 105, 191, 0.2);
    transform: translateY(-1px);
}

.change-file-btn i {
    font-size: 1rem;
}

.confirm-upload-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.confirm-upload-btn:not(:disabled):hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
}

.confirm-upload-btn:disabled {
    background: var(--dark-gray);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Loading States */
.upload-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--light-gray);
    padding: 2rem;
}

.upload-loading i {
    font-size: 2.5rem;
    color: var(--primary-blue);
}

/* Mobile Adjustments */
@media screen and (max-width: 768px) {
    .upload-section {
        padding: 1rem;
    }

    .upload-area {
        padding: 1.5rem;
        min-height: 180px;
    }

    .upload-content i {
        font-size: 2.5rem;
    }

    .upload-content p {
        font-size: 1rem;
    }

    .upload-content span {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .preview-image {
        max-height: 200px;
    }

    .preview-info {
        padding: 0.75rem;
    }

    .change-file-btn {
        padding: 0.6rem 1rem;
    }

    .confirm-upload-btn {
        padding: 0.875rem;
    }
}

/* Smaller devices */
@media screen and (max-width: 375px) {
    .upload-content i {
        font-size: 2rem;
    }

    .upload-content p {
        font-size: 0.9rem;
    }

    .upload-content span {
        font-size: 0.75rem;
    }

    .preview-image {
        max-height: 180px;
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-content i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.loading-content p {
    font-size: 1.1rem;
    margin: 0;
}

/* Floating Cart Styles */
.floating-cart {
    position: fixed;
    bottom: 70px;
    right: 20px;
    left: 20px;
    margin: 0 auto;
    background: rgba(75, 105, 191, 0.8);
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s ease;
}

.cart-icon {
    position: relative;
    margin-right: 15px;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-red);
    color: white;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000;
    font-weight: 500;
}

.cart-total span:first-child {
    margin-right: auto; /* Pushes the second span to the right */
}

.cart-total span:last-child {
    font-weight: 600; /* Makes the price more prominent */
}

.view-cart-btn {
    margin-left: auto;
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.view-cart-btn:hover {
    background: var(--light-gray);
}

/* Cart Modal Styles */
.cart-modal {
    max-width: 600px;
}

.cart-items {
    margin: 1.5rem 0;
    max-height: 400px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cart-item-info {
    flex: 1;
}

.cart-duration-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.cart-duration-control button {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--primary-blue);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cart-duration-control button:hover {
    background: var(--dark-blue);
}

.cart-duration-control button:disabled {
    background: var(--dark-gray);
    cursor: not-allowed;
}

.cart-duration-display {
    gap: 0.5rem;
    min-width: 80px;
}

.cart-duration-value {
    font-weight: 500;
    color: white;
}

.cart-duration-label {
    color: var(--light-gray);
    font-size: 0.9rem;
}

.cart-item-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.cart-item-details {
    font-size: 0.9rem;
    color: var(--light-gray);
}

.cart-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.cart-item-price {
    font-weight: 500;
    color: var(--secondary-blue);
}

.remove-item {
    background: none;
    border: none;
    color: var(--primary-blue);
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
    transition: all 0.2s;
}

.remove-item:hover {
    transform: scale(1.1);
}

.cart-summary {
    border-top: 1px solid var(--dark-gray);
    padding-top: 1rem;
    margin-top: 1rem;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 1rem;
    transition: background 0.2s;
}

.checkout-btn:hover {
    background: var(--dark-blue);
}

@media screen and (max-width: 768px) {
    .floating-cart {
        bottom: 70px;
        right: 0;
        left: 0;
        max-width: 480px;
        margin: 0 auto;
        border-radius: 10px 10px 0 0;
        justify-content: space-between;
        padding: 15px 20px;
        backdrop-filter: blur(10px);
    }

    .cart-icon i {
        font-size: 1.2rem;
    }

    .cart-total {
        font-size: 0.9rem;
    }

    .view-cart-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .booking-modal {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        padding: 1rem;
        margin-top: 0;
        margin-right: 0;
        margin-left: 0;
        padding-bottom: 10rem;
    }

    .booking-content {
        padding: 1rem;
    }

    .location-info {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .courts-info {
        margin-bottom: 1rem;
    }

    .court-item {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .booking-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .meta-item {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .modal-content {
        padding: 1rem;
    }

    .snacks-section {
        margin: 1rem -1rem;
    }

    .snack-item {
        padding: 0.75rem;
    }

    .quantity-control {
        margin-top: 0.5rem;
    }
    /*
    .booking-summary {
        margin-top: 1rem;
        padding: 1rem;
    } */

    .summary-items {
        font-size: 0.9rem;
    }

    .app-container {
        padding-bottom: 80px;
    }
}

/* Tambahkan di bagian court-slot styles */
.court-slot.selected {
    background-color: rgba(75, 105, 191, 0.3);
    border: 2px solid var(--primary-blue);
    position: relative;
}

.court-slot.selected::after {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--secondary-blue);
    font-size: 1.2rem;
}

.court-slot.selected:hover {
    background-color: rgba(75, 105, 191, 0.4);
}

/* Tambahkan animasi untuk feedback */
@keyframes selectedPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.court-slot.just-selected {
    animation: selectedPulse 0.3s ease-in-out;
}

/* Booking Info Styles */
.booking-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.booking-header {
    background: var(--primary-blue);
    padding: 1rem 1.5rem;
}

.booking-header h3 {
    color: white;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
}

.booking-content {
    padding: 1.5rem;
}

/* Location Info */
.location-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.location-info i {
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.location-info span {
    color: #333;
    font-weight: 500;
    font-size: 1.1rem;
}

/* Courts Info */
.courts-info {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.courts-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.court-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #ffffff;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.court-item:last-child {
    margin-bottom: 0;
}

.court-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.court-name {
    color: #333;
    font-weight: 600;
}

.court-schedule {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.court-price {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1.1rem;
}

.booking-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.meta-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f9f9f9;
    border-radius: 6px;
}

.meta-item i {
    color: var(--primary-blue);
}

.meta-item span {
    color: #333;
    font-weight: 500;
}

.meta-item #pricePerHour {
    color: var(--primary-blue);
    font-weight: 600;
}

@media screen and (max-width: 768px) {
    .booking-content {
        padding: 1rem;
    }

    .meta-item {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

/* Payment Confirmation Page Styles */
.payment-confirmation-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Status Header */
.payment-status-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.payment-status-header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.payment-id {
    color: var(--light-gray);
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.payment-timer {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(227, 30, 36, 0.1);
    border-radius: 8px;
    color: var(--primary-blue);
    font-weight: 500;
    margin-top: 1rem;
}

/* Container Layout */
.payment-details-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Section Styling */
.payment-info-section,
.upload-section,
.order-details-section,
.how-to-pay-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Bank Account Info */
.bank-account {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(75, 105, 191, 0.2);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bank-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.account-info {
    flex: 1;
}

.account-number {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: white;
}

.account-name {
    font-size: 0.85rem;
    color: var(--light-gray);
    margin-top: 0.25rem;
}

/* Total Amount Display */
.total-amount {
    background: rgba(75, 105, 191, 0.1);
    border: 1px solid rgba(75, 105, 191, 0.2);
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.total-amount strong {
    font-size: 1.4rem;
    color: var(--secondary-blue);
}

/* Order Details */
.detail-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-row:last-child {
    border-bottom: none;
}

/* How to Pay Steps */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-content i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .payment-confirmation-page {
        padding: 1rem;
    }

    .payment-status-header {
        margin-bottom: 1.5rem;
    }

    .payment-status-header h1 {
        font-size: 1.5rem;
    }

    .bank-account {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .account-number {
        font-size: 1.2rem;
    }

    .total-amount {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .detail-section {
        padding: 0.75rem;
    }

    .detail-row {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }

    .step {
        padding: 0.5rem 0;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
}

.navigation-menu {
    display: flex;
    justify-content: space-around;
    background-color: var(--primary-color);
    padding: 0.1rem 0;
    position: fixed; /* Change from relative to fixed */
    bottom: 0; /* Keep at bottom */
    width: 100%;
    max-width: 480px; /* Match mobile container width */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1005;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px 10px 0 0;
}

.booking-btn {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1.5rem;
    z-index: 1003;
    transition: all 0.3s ease;
}

.booking-btn:hover,
.booking-btn:active {
    transform: translateX(-50%) translateY(-5px);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.booking-btn i {
    animation: pulse 1.5s infinite;
}

.nav-item {
    flex: 1; /* Membuat semua item menu memiliki lebar yang sama */
    display: flex;
    flex-direction: column; /* Mengatur arah flex menjadi kolom */
    align-items: center; /* Mengatur item agar berada di tengah */
    color: #c5c5c5;
    text-decoration: none; /* Menghilangkan garis bawah */
    font-size: 12px; /* Ukuran font */
    transition: all 0.3s, transform 0.3s ease-in-out; /* Transisi warna dan transformasi */
    position: relative; /* Untuk efek hover */
    padding: 10px; /* Tambahkan padding untuk memperbesar area klik */
    z-index: 1; /* Pastikan item menu di atas elemen lain */
}

.nav-item i {
    color: #c5c5c5;
    font-size: 1.5rem; /* Ukuran ikon */
    margin-bottom: 0.5rem; /* Jarak antara ikon dan teks */
}

.nav-item.active::before {
    background-color: rgba(217, 217, 217, 0.06);
}

.nav-item:hover {
    color: var(--primary-blue); /* Hover color */
    transform: translateY(-3px); /* Lift effect */
    transition: all 0.3s ease-in-out; /* Transisi untuk efek */
}

.nav-item:hover i {
    color: var(--primary-blue); /* Hover icon color */
    transition: all 0.3s ease-in-out; /* Transisi untuk ikon */
}

.nav-item::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary-blue); /* Garis bawah */
    transform: scaleX(0); /* Mulai dari 0 */
    transition: transform 0.3s ease-in-out; /* Transisi untuk efek */
    position: absolute;
    left: 0;
    bottom: -5px; /* Posisi garis bawah */
}

.nav-item:hover::after {
    transform: scaleX(1); /* Memperbesar garis bawah saat hover */
}

.nav-item.active {
    color: var(--primary-blue); /* Brighter white for active item */
    transform: translateY(-3px);
}

.nav-item.active::after {
    transform: scaleX(1); /* Show the underline for active item */
}

.nav-item.active i {
    color: var(--primary-blue); /* Highlight icon for active item */
}

.user-info-section {
    margin: 20px 0;
    padding: 15px;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.user-info-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--text-primary);
}

.input-container {
    margin-bottom: 15px;
}

.input-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

.phone-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--input-bg);
}

.phone-input-wrapper i {
    padding: 0 12px;
    color: var(--primary-blue);
}

.phone-input-wrapper input {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    font-size: 16px;
    color: var(--text-primary);
}

.phone-input-wrapper input:focus {
    outline: none;
}

.helper-text {
    font-size: 12px;
    color: var(--text-hint);
    margin-top: 5px;
}

.schedule-grid::after {
    content: "";
    display: table;
    clear: both;
}

@media screen and (max-width: 768px) {
    /* Ensure the bottom navigation stays fixed within the container */
    .bottom-nav {
        width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }

    .booking-btn {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }

    /* Fix mobile schedule grid layout */
    .schedule-grid {
        grid-template-columns: 80px 1fr;
    }

    .time-column {
        width: 80px;
        min-width: 80px;
        max-width: 80px;
        /* No overflow - scroll with parent */
    }

    .courts-container {
        overflow-x: auto;
        overflow-y: hidden; /* Vertical scroll handled by parent */
        -webkit-overflow-scrolling: touch;
    }

    .court-headers,
    .courts-grid {
        min-width: max-content;
    }

    .time-slot,
    .court-header,
    .court-slot {
        height: 40px;
        min-height: 40px;
        width: 80px;
        min-width: 80px;
        max-width: 80px;
        border-bottom: 1px solid #bcbcbc;
        border-right: 1px solid #bcbcbc;
        box-sizing: border-box;
    }

    .court-header:last-child,
    .court-slot:last-child {
        border-right: none;
    }

    .time-slot {
        padding: 0.5rem;
    }

    .court-slot {
        padding: 0.5rem;
    }
}

@media screen and (min-width: 768px) {
    /* Keep all elements constrained within the mobile width */
    .app-container {
        width: 480px;
    }

    /* Fix header to mobile width */
    .main-header {
        width: 480px;
        max-width: 480px;
    }

    /* Fix bottom navigation to mobile width */
    .navigation-menu {
        width: 480px;
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }

    .floating-cart {
        width: 480px;
        max-width: 480px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}

.schedule-grid::after {
    content: "";
    display: table;
    clear: both;
}

.date-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f0f0f0;
    color: #999;
}
