.centered-form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 100px;
    margin-top: 24px;
}
.centered-form-container form {
    margin: 0 auto;
}/* Modal base style */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
}

.modal-content {
  z-index: 10000;
  background-color: white;
}

/* QR Modal specific styles */
.qr-modal .modal-content {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Button and other specific element styles from rental_history.php */
.status-badge-nowrap {
  white-space: nowrap;
}

.pay-button {
  white-space: nowrap;
  margin-left: 8px;
  display: inline-block;
}

.extend-button {
  font-weight: 500;
}

.qr-button-mobile {
  margin-bottom: 4px;
  white-space: nowrap;
}

.cancel-button-mobile {
  /* Remove fixed width and height to allow button to expand */
  /* width: 28px; */
  /* height: 28px; */
  /* padding: 0; */
  /* min-width: 0; */
  /* min-height: 0; */
}

.extend-button-desktop {
  font-weight: 500;
}

.show-qr-btn-desktop {
  margin-bottom: 4px;
  white-space: nowrap;
}

.pay-button-desktop {
  white-space: nowrap;
  margin-left: 8px;
  display: inline-block;
}

.cancel-button-icon {
  font-size: 1.5em;
  line-height: 1;
}

.qr-image-style {
  min-width: 400px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: auto;
}

.form-inline {
  display: inline;
}

.close-button {
  font-size: 2rem;
}

/* Ensure the JavaScript still controls the display of modals */
.cancel-modal,
.qr-modal,
.payment-instruction-modal {
    display: none;
}

/* Dashboard specific styles */
:root {
    --color-primary: #900000;
    --color-primary-dark: #4E0506;
    --color-accent: #B70000;
    --color-light: #f8f8f8;
    --color-dark: #330006;
    --color-white: #ffffff;
}
body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background: var(--color-light);
    color: var(--color-dark);
}
.user-header {
    background: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 55px;
    z-index: 1000;
    padding: 0 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.user-header h1 {
    margin: 0 0 0 15px;
    font-size: 1.3em;
    color: var(--color-white);
}
.user-hamburger-btn {
    margin-left: auto;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    display: none;
    z-index: 1051;
}
.user-hamburger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-white);
    margin: 5px 0;
    transition: all 0.3s ease;
}
.user-sidebar-nav {
    position: fixed;
    top: 0;
    left: -260px;
    width: 240px;
    height: 100%;
    background: var(--color-white);
    box-shadow: 3px 0 6px rgba(0,0,0,0.1);
    z-index: 1050;
    padding-top: 65px;
    transition: left 0.3s ease;
    overflow-y: auto;
}
.user-sidebar-nav a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.user-sidebar-nav a:hover {
    background: var(--color-primary);
    color: var(--color-white);
}
.user-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1040;
}
body.user-sidebar-active .user-sidebar-nav {
    left: 0;
}
body.user-sidebar-active .user-overlay {
    opacity: 1;
    visibility: visible;
}
body.user-sidebar-active .user-hamburger-btn span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
body.user-sidebar-active .user-hamburger-btn span:nth-child(2) {
    opacity: 0;
}
body.user-sidebar-active .user-hamburger-btn span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
@media (max-width: 768px) {
    .user-hamburger-btn {
        display: block;
    }
    .user-header h1 {
        font-size: 1.1em;
    }
    .user-sidebar-nav {
        background: #fff;
    }
    .booking-pending {
        background: #fffbe6 !important; /* Light yellow for pending */
    }
}
@media (min-width: 769px) {
    .user-hamburger-btn {
        display: none;
    }
    .user-sidebar-nav {
        position: static;
        left: 0;
        width: auto;
        height: auto;
        background: none;
        box-shadow: none;
        padding-top: 0;
        display: flex;
        flex-direction: row;
    }
    .user-sidebar-nav a {
        padding: 12px 18px;
        color: var(--color-dark);
    }
    .user-sidebar-nav a:hover {
        background: var(--color-primary);
        color: var(--color-white);
    }
    .user-overlay {
        display: none;
    }
    .user-header {
        position: static;
        box-shadow: none;
        height: auto;
        padding: 10px 20px;
    }
}
.user-main {
    padding: 75px 10px 10px 10px;
    max-width: 900px;
    margin: 0 auto;
}
.qr-modal .bg-white {
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.overflow-hidden {
    overflow: hidden;
}

/* Center the payment success container vertically and horizontally */
.payment-success-center-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}
.success-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 40px 32px 32px 32px;
    max-width: 420px;
    width: 100%;
    text-align: center;
}
.success-icon {
    font-size: 64px;
    color: #22c55e;
    margin-bottom: 18px;
}
.btn-dashboard {
    background: #2563eb;
    color: #fff;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 1.1rem;
    border: none;
    transition: background 0.2s;
    display: inline-block;
    margin-top: 16px;
    text-decoration: none;
}
.btn-dashboard:hover {
    background: #1d4ed8;
    color: #fff;
}

/* Tripay checkout.css essential styles (imported for compliance with rulescss.md) */
.box-shape {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
.payment__logo img, .merchant__logo img {
    max-height: 35px;
    margin-bottom: 15px;
}
.payment__title h5 {
    font-size: 1.2rem;
    font-weight: bold;
}
.payment__infoTitle {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.2rem;
}
.payment__infoSubtitle {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}
.payment__infoSubtitle .input-group .form-control {
    font-weight: bold;
}
.payment__expired {
    font-size: 1rem;
    font-weight: bold;
    color: #d9534f;
}
.qr-code-container {
    text-align: center;
    margin-bottom: 15px;
}
.qr-code-container img {
    max-width: 250px;
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 4px;
}
.icon-copy { cursor: pointer; }
#countdown-timer {
    font-weight: bold;
    color: #d9534f;
}
.alert-sandbox {
    font-size: 0.85rem;
}
.max-w-xl { max-width: 48rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.p-8 { padding: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.rounded { border-radius: 0.25rem; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); }
.text-center { text-align: center; }

.bounce-anim {
    animation: bounce 1s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* WhatsApp Floating Icon Styles */
.whatsapp-float {
    position: fixed;
    right: 35px;
    bottom: 35px;
    z-index: 1200;
    background: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    transition: background 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
}
.whatsapp-float:hover, .whatsapp-float:focus {
    background: #128c7e;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
    outline: none;
}
.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
    display: block;
}
@media (max-width: 600px) {
    .whatsapp-float {
        width: 48px;
        height: 48px;
        right: 20px;
        bottom: 20px;
    }
    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}

/* Language Selector Box Styles */
.lang-selector-box {
  background-color: rgb(100, 0, 0); /* Red */
  border: 2px solid #0074d9; /* Blue border */
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  padding: 0.25rem 0.75rem;
  min-width: 160px;
}
.lang-selector-label {
  color: #fff;
  font-size: 1rem;
  margin-right: 0.5rem;
  margin-bottom: 0;
}
.lang-selector-select {
  background-color: rgb(100, 0, 0);
  color: #fff;
  border: none;
  border-radius: 0.3rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.95rem;
  outline: none;
}
.lang-selector-select:focus {
  border: 2px solid #0074d9;
  background-color: #a00000;
}

.action-buttons button {
    margin-left: 10px;
}

/* Language Selector Styles */
#lang-selector, .lang-selector-select {
    background-color: rgb(100, 0, 0);
    color: white;
    border: 1px solid darkred;
    padding: 5px 10px;
    border-radius: 5px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

#lang-selector option {
    background-color: darkred; /* light red */
    color: #ffffff;
}

/* Note: Styling option hover has limited browser support */
#lang-selector option:hover {
    background-color: #f3f4f6;
}

/* Collapsible Search Container Styles */
.search-form-container {
    background: #fff;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1);
    min-height: 0;
    margin-top: 0;
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.search-form-container.collapsed {
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
}
/* Remove margin between header and form when collapsed */
.search-form-container form { margin-top: 0; }

/* Responsive adjustments for the collapsible search */
@media (max-width: 768px) {
    .search-form-container {
        padding: 0 1rem;
    }
    .search-form-container.collapsed {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Animation improvements */
.search-form-container {
    will-change: max-height;
}

/* Focus styles for form elements within the collapsible container */
.search-form-container input:focus,
.search-form-container select:focus {
    outline: 2px solid #B70000;
    outline-offset: 2px;
}

/* Collapsible header for search box */
.collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.collapsible-header h2 {
    flex: 1;
    text-align: center;
    margin: 0;
}
.collapsible-header .search-toggle-btn {
    flex-shrink: 0;
}

.search-form-container label {
    text-align: center;
    width: 100%;
    display: block;
}

.search-form-container input,
.search-form-container select {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 260px;
    width: 100%;
}

.otp-status-info {
    color: #2563eb; /* blue-600 */
    font-weight: bold;
    font-size: 1.15rem;
}

#country_code {
    width: 60px !important;
}

#phone_number {
    width: 200px !important;
}

/* Dashboard row buttons (smaller, horizontal on mobile) */
.dashboard-btn {
    font-size: 1rem;
    font-weight: 700;
    padding: 0.75rem 0.5rem;
    border-radius: 0.5rem;
    border: none;
    width: 100%;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    margin: 0;
    display: block;
}
.dashboard-btn:hover { filter: brightness(0.95); }
@media (max-width: 600px) {
    .dashboard-btn {
        font-size: 0.95rem;
        padding: 0.5rem 0.2rem;
        min-height: 38px;
    }
}

.dashboard-btn--blue { background: #2563eb; color: #fff; }
.dashboard-btn--blue:hover { background: #1d4ed8; }
.dashboard-btn--green { background: #16a34a; color: #fff; }
.dashboard-btn--green:hover { background: #15803d; }
.dashboard-btn--yellow { background: #eab308; color: #fff; }
.dashboard-btn--yellow:hover { background: #ca8a04; }
