.modal .modal-body .modal-profile {
    width: 120px;
    height: 120px;
    object-fit: cover;
}
.modal .modal-body .modal-lapangan {
    width: 100%;
    object-fit: cover;
}
.form-edit .profile-edit {
    width: 120px;
    height: 120px;
    object-fit: cover;
}
.card .card-body .profile-edit-customer {
    width: 120px;
    height: 120px;
    object-fit: cover;
}
.form-edit-lapangan .foto-lapangan {
    width: 50%;
    object-fit: cover;
}
.navbar .navbar-nav .img-profile {
    object-fit: cover;
}
.navbar .navbar-nav .customer-profile {
    width: 40px;
    height: 40px;
    object-fit: cover;
} /* Ini Style Untuk Side Bar */
.sidebar {
    background-color: #333333;
}
.sidebar .nav-link:hover,
.sidebar .nav-link:hover i {
    color: #ffb22c !important;
}
.sidebar .nav-link,
.sidebar .nav-link i {
    color: #ffffff !important;
}
.sidebar .nav-item .nav-link.active {
    color: #ffb22c !important;
}
.sidebar .nav-item .nav-link.active i {
    color: #ffb22c !important;
}
.sidebar-divider {
    background-color: #777777 !important;
} /* STYLE CUSTOMER */
.navbar .logo {
    color: #34495e;
    font-weight: 600;
}
.navbar .btn-register {
    background-color: #333333;
}
.register-bg {
    position: relative;
    background-image: url("/assets/background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    z-index: 1;
}
.register-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8); /* opacity putih 40% */
    z-index: -1; /* berada di belakang isi */
}
.container .card {
    margin-top: 3rem;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(2px);
}
.bg-admin-login {
    position: relative;
    background-image: url("/assets/background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    z-index: 1;
}
.bg-admin-login::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8); /* opacity putih 40% */
    z-index: -1; /* berada di belakang isi */
}

.main-section-index {
    padding-top: 20rem;
    background:
        linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 1)),
        url("../assets/home-image.jpg") center/cover no-repeat;
    background-attachment: fixed;
}
.title {
    font-family: "Inter", "Roboto", sans-serif;
    color: #2c3e50;
    font-weight: 700;
}
.foto-lapangan-index {
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.foto-lapangan-index:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
/* NAVBAR CUSTOMER BLACK GOLD THEME */
.navbar-dropdown-item {
    transition: all 0.3s ease;
}

.navbar-dropdown-item:hover {
    background: linear-gradient(135deg, #ffb22c 0%, #ffa500 100%) !important;
    color: #1a1a1a !important;
    transform: translateX(5px);
}

.navbar-dropdown-item:hover i {
    color: #1a1a1a !important;
}

.navbar-brand:hover {
    opacity: 0.9;
    transition: all 0.3s ease;
}
/* NAVBAR BEFORE LOGIN BLACK GOLD THEME */
.navbar-home-link {
    transition: all 0.3s ease;
}

.navbar-home-link:hover {
    color: #ffa500 !important;
    transform: translateY(-2px);
}

.navbar-btn-login {
    transition: all 0.3s ease;
}

.navbar-btn-login:hover {
    background: linear-gradient(135deg, #ffa500 0%, #ffb22c 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 178, 44, 0.4) !important;
}

.navbar-btn-register {
    transition: all 0.3s ease;
}

.navbar-btn-register:hover {
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 178, 44, 0.5) !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 178, 44, 0.25);
}
/* FOOTER BLACK GOLD THEME */
.sticky-footer {
    transition: all 0.3s ease;
}

.sticky-footer:hover {
    border-top-color: #ffa500;
}
/* =======================
   FORM INPUTS
   ======================= */
.form-control:focus {
    border-color: #ffb22c;
    box-shadow: 0 0 0 0.2rem rgba(255, 178, 44, 0.25);
}

/* =======================
   BOOKING PAGE
   ======================= */

.main-section-peminjaman {
    margin-top: 120px;
}

.booking-jam-item {
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: #ffb22c;
    border: 2px solid #ffb22c;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.booking-jam-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffb22c 0%, #ffa500 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.booking-jam-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 178, 44, 0.4);
    border-color: #ffa500;
    color: #1a1a1a;
}

.booking-jam-item:hover::before {
    left: 0;
}

.booking-jam-item.selected {
    background: linear-gradient(135deg, #ffb22c 0%, #ffa500 100%);
    color: #1a1a1a;
    border-color: #ffb22c;
    box-shadow: 0 6px 20px rgba(255, 178, 44, 0.6);
    transform: translateY(-3px);
    font-weight: 600;
}

.booking-jam-item.disabled {
    background: linear-gradient(135deg, #4a4a4a 0%, #333333 100%);
    color: #777777;
    border-color: #555555;
    cursor: not-allowed;
    opacity: 0.5;
}

.booking-jam-item.disabled:hover {
    transform: none;
    box-shadow: none;
    color: #777777;
}

.booking-jam-item.disabled::before {
    display: none;
}

.booking-form-section {
    padding: 50px 0;
    position: relative;
}

.booking-form-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.booking-card {
    border: 2px solid #ffb22c;
    border-radius: 15px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(255, 178, 44, 0.2);
}

.booking-card-header {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%) !important;
    color: #ffb22c !important;
    border: none;
    padding: 20px;
    border-bottom: 3px solid #ffb22c;
}

.booking-card-header h5 {
    color: #ffb22c !important;
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.booking-btn-primary {
    background: linear-gradient(135deg, #ffb22c 0%, #ffa500 100%);
    border: 2px solid #ffb22c;
    color: #1a1a1a;
    padding: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.booking-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #ffa500 0%, #ffb22c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 178, 44, 0.5);
    color: #1a1a1a;
}

.booking-btn-primary:disabled {
    background: linear-gradient(135deg, #cccccc 0%, #999999 100%);
    border-color: #999999;
    color: #666666;
    transform: none;
    cursor: not-allowed;
}

.booking-alert-info {
    background: linear-gradient(135deg, #fff9e6 0%, #ffe4b3 100%);
    border: 2px solid #ffb22c;
    border-radius: 10px;
    color: #4a4a4a;
    box-shadow: 0 4px 15px rgba(255, 178, 44, 0.2);
}

.booking-alert-info h6 {
    color: #1a1a1a;
    font-weight: 700;
    border-bottom: 2px solid #ffb22c;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.booking-alert-info strong {
    color: #ff8c00;
}

.booking-label-strong {
    color: #2c2c2c;
    font-weight: 700;
}

.booking-jam-container {
    padding: 10px 0;
}

.booking-info-icon {
    color: #ffb22c;
}

.booking-lapangan-title {
    color: #2c2c2c;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(255, 178, 44, 0.1);
}

.booking-lapangan-price {
    color: #ffb22c;
    font-weight: 700;
}

.booking-form-control-date {
    border: 2px solid #dddddd;
    transition: all 0.3s ease;
}

.booking-form-control-date:focus {
    border-color: #ffb22c;
    box-shadow: 0 0 0 0.2rem rgba(255, 178, 44, 0.25);
}

.booking-jam-item.booked {
    background-color: #f8d7da;
    color: #842029;
    cursor: not-allowed;
    opacity: 0.7;
}

.modal .modal-body .modal-bukti-pembayaran {
    width: 100%;
    object-fit: cover;
}

.table-riwayat {
    margin-top: 130px;
}

/* Pagination Styling */
.pagination-wrapper {
    border-radius: 0 0 15px 15px;
    overflow-x: auto; /* Tambahkan ini untuk scroll horizontal jika perlu */
}

.pagination {
    margin: 0;
    flex-wrap: wrap; /* Agar pagination wrap ke baris baru */
    justify-content: center;
}

.pagination .page-link {
    color: #2c2c2c;
    background-color: #ffffff;
    border: 2px solid #ffb22c;
    margin: 0 3px;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    color: #1a1a1a;
    background: linear-gradient(135deg, #ffb22c 0%, #ffa500 100%);
    border-color: #ffb22c;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 178, 44, 0.4);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #ffb22c 0%, #ffa500 100%);
    border-color: #ffb22c;
    color: #1a1a1a;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 178, 44, 0.4);
}

.pagination .page-item.disabled .page-link {
    color: #cccccc;
    background-color: #f8f9fa;
    border-color: #e0e0e0;
}

/* Responsive untuk Mobile */
@media (max-width: 768px) {
    .booking-container {
        padding: 1rem 0.5rem;
        margin: 100px auto 20px; /* Kurangi margin top */
    }

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

    .table thead th,
    .table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }

    .pagination-wrapper {
        padding: 1rem 0.5rem !important; /* Kurangi padding */
    }

    .pagination {
        margin: 0;
        gap: 4px; /* Jarak antar item */
    }

    .pagination .page-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        margin: 0 2px;
        min-width: 35px; /* Ukuran minimum */
        text-align: center;
    }

    /* Hide text pada Previous/Next di mobile, hanya tampilkan icon */
    .pagination .page-item:first-child .page-link::before {
        content: "‹";
    }

    .pagination .page-item:last-child .page-link::before {
        content: "›";
    }
}

/* Untuk layar sangat kecil */
@media (max-width: 576px) {
    .table-card {
        margin: 0 -0.5rem; /* Extend ke tepi layar */
        border-radius: 10px;
    }

    .pagination-wrapper {
        padding: 0.75rem 0.25rem !important;
    }

    .pagination .page-link {
        padding: 0.35rem 0.5rem;
        font-size: 0.7rem;
        margin: 0 1px;
        min-width: 30px;
    }

    .pagination-wrapper .row {
        margin: 0;
    }

    .pagination-wrapper .col-md-6 {
        padding: 0 0.5rem;
    }

    /* Stack info dan pagination secara vertikal di mobile */
    .pagination-wrapper .col-md-6:first-child {
        margin-bottom: 0.75rem;
    }
}

.wa-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    text-decoration: none;
}

.wa-float:hover {
    background-color: #1ebe5d;
    text-decoration: none;
    color: #fff;
}
