/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling */
body {
    display: flex;
    justify-content: center;
    align-items: top;
    height: 100%;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #ffffff, #ff8800); /* Gradient background */
	background-attachment: fixed; /* Keeps the gradient static */
    color: #fff;
}

/* General container for all pages */
.container {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 8px;
    width: 100%;
    max-width: 500px; /* Max width to ensure content doesn't stretch too wide */
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.);
    box-sizing: border-box;
}

/* Login page container */
.login-container {
    max-width: 400px; /* Slightly smaller for login */
}

/* Heading styling */
h2 {
    font-size: 24px;
    color: #ff8800;
    margin-bottom: 20px;
}

/* Label styling */
label {
    display: block;
    font-size: 14px;
    margin-top: 15px;
    color: #ff8800;
}

/* Input fields styling */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    background: #333;
    border: 1px solid #ff8800;
    border-radius: 4px;
    color: #ff8800;
    font-size: 16px;
}

/* Focus state for inputs */
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #ff8800;
}

/* Button styling */
button {
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background-color: #ff8800;
    color: #000;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Button hover state */
button:hover {
    background-color: #ff8800;
}

/* Register page container */
.register-container {
    max-width: 500px;
    margin: auto;
    padding: 20px;
}

/* General page (after login) container */
.general-container {
    text-align: center;
    padding: 20px;
    width: 100%;
    max-width: 500px;
}

/* Booking page layout */
.booking-container {
    max-width: 600px;
    margin: auto;
    padding: 20px;
    background: #222;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
}

/* Booking form fields */
.booking-container select,
.booking-container input[type="text"],
.booking-container input[type="tel"],
.booking-container input[type="email"],
.booking-container input[type="password"],
.booking-container input[type="number"], /* Added number input */
.booking-container input[type="date"], /* Added date input */
.booking-container input[type="time"],
.booking-container textarea {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    background: #333;
    border: 1px solid #ff8800;
    color: #ff8800;
    font-size: 16px;
    border-radius: 4px;
}

/* Button styling */
.booking-container button {
    width: 100%;
    margin-top: 20px;
    padding: 10px;
    background: #ff8800;
    color: #222;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.booking-container button:hover {
    background: #ff8800;
}


/* Container for displaying booking info */
.booking-display-container {
    text-align: center;
    padding: 20px;
    width: 100%;
    max-width: 500px;
}

/* Styling for dropdowns, to ensure they match other form fields */
.booking-dropdown {
    width: 100%;
    padding: 10px;
    background: #333;
    border: 1px solid #ff8800;
    border-radius: 4px;
    color: #ff8800;
    font-size: 16px;
}



/* Hover effect on rows */
#bookingDisplay tr:hover {
    background-color: #444;
}

/* Alternating row colors */
#bookingDisplay tr:nth-child(even) {
    background-color: #2a2a2a; /* Darker row for even rows */
}

#bookingDisplay tr:nth-child(odd) {
    background-color: #222; /* Lighter row for odd rows */
}

/* Table Container Styling (Ensuring the table fits within its container) */
.booking-container {

    overflow-x: auto; /* Allow horizontal scroll if needed */
    padding: 20px;
    background: #222;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
/* Booking frame container styling */
.booking-frame {
    background-color: #333;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
}

/* Table styling inside each booking frame */
.booking-frame table {
    width: 100%;
    color: #ff8800;
    font-size: 16px;
    text-align: left;
}

/* Table header styling */
.booking-frame th {
    padding-right: 15px;
    font-weight: normal;
}

/* Delete button styling to span the div */
.delete-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    background-color: #ff8800;
    color: #000;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.delete-btn:hover {
    background-color: #ff8800;
}
/* Full-page loading overlay */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Transparent black background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it overlays everything */
    pointer-events: all; /* Block interaction with the page */
}

/* Gold spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 6px solid transparent; /* Transparent border */
    border-top: 6px solid #ff8800; /* Gold color for the spinning edge */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Spinner animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Disable page interaction */
body.loading-active *:not(#loading) {
    pointer-events: none; /* Disable clicks */
    user-select: none;    /* Disable text selection */
}
/* Full-page modal overlay */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Transparent black background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it overlays everything */
    pointer-events: all; /* Block interaction with the page */
}

/* Modal content box */
.modal-content {
    background: #222; /* Dark background for the modal */
    color: #ff8800; /* Gold text color */
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 400px;
}

/* Disable page interaction */


/* Button inside the modal */
.modal-content button {
    background: #ff8800;
    color: #222;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}

.modal-content button:hover {
    background: #ff8800;
}

 .dob-container {
        display: flex;
        gap: 10px;
        justify-content: space-between;
        width: 100%;
    }

    .dob-container div {
        flex: 1; /* Equal distribution of space */
    }

    .dobcontainer label {
        display: block;
        margin-bottom: 4px;
        font-size: 14px;
        color: #ff8800;
    }

    .dob-container input[type="number"] {
        width: 100%; /* Ensure full width within the container */
        padding: 10px;
        background: #333;
        border: 1px solid #ff8800;
        color: #ff8800;
        font-size: 16px;
        border-radius: 4px;
    }