/* Reset and Base Styles */
/* Import Arabic fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&family=Tajawal:wght@400;500;700;900&family=Almarai:wght@400;700;800&family=Changa:wght@400;600;700;800&display=swap'); /* Added Changa for better clarity */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #C5A353; /* Muted Gold for less eye strain */
    --secondary-color: #9A7B4F; /* Darker Muted Gold */
    --dark-bg: #000000; /* Pure Black */
    --light-bg: #1A1A1A; /* Dark Gray/Off-Black */
    --text-color: #E0C890; /* Soft Gold for text */
    --heading-color: #C5A353; /* Muted Gold for headings */
    --accent-color: #C5A353; /* Muted Gold for accents */
    --warning-color: #fbc531; /* A clear, but not harsh, yellow */
    --error-color: #eb3b5a; /* A distinct, but not overly bright, red */
    --gradient-primary: linear-gradient(135deg, #9A7B4F 0%, #C5A353 100%); /* Muted Gold gradient */
    --gradient-secondary: linear-gradient(90deg, #C5A353, #E0C890); /* Muted Gold gradient */
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.3);
    --offer-bg: #1A1A1A; /* Dark background for offer banner */
    --offer-border: #546a7e;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Arabic font styling */
body[dir="rtl"], 
.arabic-text,
[lang="ar"] {
    font-family: 'Changa', 'Cairo', 'Tajawal', 'Almarai', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: right;
    direction: rtl;
}

/* Enhanced Arabic typography */
.arabic-text h1,
.arabic-text h2,
.arabic-text h3,
[lang="ar"] h1,
[lang="ar"] h2,
[lang="ar"] h3 {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.arabic-text p,
.arabic-text span,
.arabic-text label,
[lang="ar"] p,
[lang="ar"] span,
[lang="ar"] label {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

.arabic-text button,
[lang="ar"] button {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.container {
    width: 100%;
    min-height: 100vh;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    text-align: center;
}

.hero-content {
    max-width: 500px;
    width: 100%;
    z-index: 2;
}

.logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(197, 163, 83, 0.7)); /* Muted Gold shadow */
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.event-title {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(197, 163, 83, 0.6); /* Softer Gold shadow */
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.event-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* Offer Banner - Redesigned */
.offer-banner {
    background: var(--offer-bg);
    color: #ffffff;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
    border: 2px solid var(--offer-border);
    transition: all 0.3s ease;
}

.offer-banner:hover {
    transform: translateY(-5px) scale(1.01); /* Added slight scale for modern feel */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.offer-banner::before,
.offer-banner::after {
    content: ''; /* Removed emojis */
    position: absolute;
    /* Removed top, left, bottom, right, font-size, opacity */
}

.offer-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    color: var(--accent-color); /* Use accent color for title */
}

.offer-text {
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    color: var(--text-color);
}

/* Compact Countdown */
.countdown-compact {
    margin: 25px 0;
}

.countdown-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
}

#countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.timer-item {
    background: rgba(0, 0, 0, 0.6); /* Darker background for better contrast */
    border: 1px solid var(--secondary-color); /* Gold border */
    padding: 12px 8px;
    border-radius: 10px;
    min-width: 60px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.timer-item span {
    display: block;
    font-size: 2.2rem; /* Slightly larger numbers */
    font-weight: 900;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(164, 176, 190, 0.8); /* Adjusted shadow */
    line-height: 1;
}

.timer-item small {
    font-size: 0.9rem; /* Slightly larger text */
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
    display: block;
}

/* Aliases for JS-generated countdown classes (initCountdown rewrites innerHTML with these) */
.countdown-item {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 8px;
    border-radius: 10px;
    min-width: 60px;
    backdrop-filter: blur(10px);
    text-align: center;
}

.countdown-value {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(164, 176, 190, 0.8);
    line-height: 1;
}

.countdown-label {
    font-size: 0.9rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
    display: block;
}

/* Booking Now Button */
.booking-now-btn {
    width: 100%;
    max-width: 300px;
    padding: 18px 30px;
    background: var(--primary-color); /* Solid color instead of gradient */
    border: none;
    border-radius: 50px;
    color: #ffffff; /* Changed to white for better contrast */
    font-size: 1.5rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.booking-now-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); /* Muted shimmer */
    transition: left 0.5s;
}

.booking-now-btn:hover::before {
    left: 100%;
}

.booking-now-btn:hover {
    transform: translateY(-3px) scale(1.02); /* Added slight scale for modern feel */
    box-shadow: 0 15px 40px rgba(197, 163, 83, 0.3); /* Softer Gold shadow */
}

.booking-now-btn:active {
    transform: translateY(0);
}

/* Hero Image */
.hero-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.15;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px);
}

/* Booking Modal */
.booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    padding: 20px;
}

.modal-content {
    background: linear-gradient(135deg, var(--light-bg), var(--dark-bg));
    border: 2px solid var(--primary-color); /* Added subtle gold border on modal */
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-heavy);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 25px 0;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--heading-color);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2); /* Muted shadow */
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: var(--error-color);
}

/* Form Styles */
form {
    padding: 0 25px 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-control:focus {
    border-color: var(--primary-color); /* Gold for focus */
    box-shadow: 0 0 10px rgba(197, 163, 83, 0.2); /* Softer Gold shadow */
    outline: none;
    background: rgba(0, 0, 0, 0.5);
}

.form-control::placeholder {
    color: rgba(224, 224, 224, 0.6);
}

/* Gender Selection */
.gender-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.gender-option {
    padding: 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-color);
    backdrop-filter: blur(10px);
}

.gender-option:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color); /* Gold for hover */
    transform: translateY(-2px);
}

.gender-option.selected {
    background: var(--primary-color); /* Solid color instead of gradient */
    border-color: var(--primary-color); /* Changed to primary color */
    box-shadow: 0 0 15px rgba(197, 163, 83, 0.4); /* Softer Gold shadow */
    color: #fff;
    transform: translateY(-2px);
}

/* Guest Names */
.guest-names-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.guest-names-container input {
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.guest-names-container input:focus {
    border-color: var(--primary-color); /* Gold for focus */
    box-shadow: 0 0 10px rgba(197, 163, 83, 0.2); /* Softer Gold shadow */
    outline: none;
}

/* Custom Checkbox */
.checkbox-group {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem; /* Increased font size */
    color: var(--text-color);
    padding: 14px; /* Increased padding */
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent; /* Added border for selection state */
}

.checkbox-label:hover {
    background: rgba(0, 0, 0, 0.4);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 24px; /* Increased size */
    height: 24px; /* Increased size */
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3); /* Increased border */
    border-radius: 8px; /* Slightly more rounded */
    margin-right: 15px; /* Increased margin */
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkmark {
    background: var(--primary-color);
    border-color: var(--secondary-color);
}

.checkbox-label input[type="checkbox"]:checked ~ .checkmark::after {
    content: '✔'; /* Changed to a more standard checkmark */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 16px; /* Increased size */
}

.checkbox-label input[type="checkbox"]:checked ~ span {
    color: var(--secondary-color); /* Change text color when checked */
}

.optional-text {
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-left: 8px; /* Increased margin */
    font-weight: 400;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--secondary-color); /* Solid color instead of gradient */
    border: none;
    border-radius: 12px;
    color: #ffffff; /* Changed to white for better contrast */
    font-size: 1.2rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(106, 137, 204, 0.4); /* Adjusted shadow */
}

.btn-submit:active {
    transform: translateY(0);
}

/* Location Button */
.view-location-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text-color);
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.view-location-btn:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Success Message */
.success-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    backdrop-filter: blur(5px);
    padding: 20px;
}

.success-content {
    background: linear-gradient(135deg, var(--light-bg), var(--dark-bg));
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-heavy);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.3s ease-out;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #28a745; /* Green for success */
}

.success-content h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--heading-color);
    margin-bottom: 15px;
}

.success-content p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 30px;
}

.close-success-btn {
    padding: 12px 25px;
    background: var(--primary-color);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-success-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 15px;
    }

    .event-title {
        font-size: 2rem;
    }

    .event-subtitle {
        font-size: 1rem;
    }

    .offer-banner {
        padding: 15px;
    }

    .offer-title {
        font-size: 1.2rem;
    }

    .offer-text {
        font-size: 1rem;
    }

    #countdown {
        gap: 10px;
    }

    .timer-item, .countdown-item {
        min-width: 50px;
        padding: 10px 5px;
    }

    .timer-item span, .countdown-value {
        font-size: 1.5rem;
    }

    .timer-item small, .countdown-label {
        font-size: 0.6rem;
    }

    .booking-now-btn {
        font-size: 1.1rem;
        padding: 15px 25px;
    }

    .modal-content {
    /* Added subtle gold border on modal */
    border: 2px solid var(--primary-color);
        padding: 15px;
        margin: 10px;
    }

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

    .close-modal {
        font-size: 2rem;
    }

    .form-control,
    .gender-option,
    .btn-submit,
    .view-location-btn {
        padding: 12px;
        font-size: 1rem;
    }

    .success-content {
        padding: 30px 20px;
    }

    .success-icon {
        font-size: 3rem;
    }

    .success-content h2 {
        font-size: 2rem;
    }

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

    .close-success-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        max-width: 100%;
    }

    .event-title {
        font-size: 1.5rem;
    }

    .event-subtitle {
        font-size: 0.8rem;
    }

    .offer-title {
        font-size: 1.1rem;
    }

    .offer-text {
        font-size: 0.8rem;
    }

    .timer-item, .countdown-item {
        min-width: 45px;
        padding: 8px 3px;
    }

    .timer-item span, .countdown-value {
        font-size: 1.5rem;
    }

    .booking-now-btn {
        font-size: 1.1rem;
        padding: 12px 20px;
    }

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

    .form-control,
    .gender-option,
    .btn-submit,
    .view-location-btn {
        padding: 10px;
        font-size: 0.8rem;
    }

    .success-content h2 {
        font-size: 1.5rem;
    }
}

/* Admin Dashboard Styles */
.admin-navbar {
    background: linear-gradient(145deg, rgba(47, 54, 64, 0.95), rgba(30, 39, 46, 0.95));
    padding: 20px;
    border-bottom: 2px solid #4a69bd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.admin-navbar h1 {
    color: #4a69bd;
    font-size: 2rem;
    font-weight: 900;
    text-shadow: 0 0 15px rgba(74, 105, 189, 0.6);
}

.admin-navbar .nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.admin-navbar a {
    color: #f5f6fa;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
    border: 1px solid transparent;
}

.admin-navbar a:hover {
    background: rgba(74, 105, 189, 0.2);
    border-color: #4a69bd;
    transform: translateY(-2px);
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.admin-stat-card {
    background: linear-gradient(145deg, rgba(47, 54, 64, 0.95), rgba(30, 39, 46, 0.95));
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #4a69bd;
    box-shadow: 0 10px 30px rgba(74, 105, 189, 0.2);
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.admin-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(74, 105, 189, 0.3);
}

.admin-stat-card h3 {
    color: #a4b0be;
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-stat-card .number {
    color: #4a69bd;
    font-size: 2.5rem;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(74, 105, 189, 0.6);
}

.admin-charts-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.admin-chart-container {
    background: linear-gradient(145deg, rgba(47, 54, 64, 0.95), rgba(30, 39, 46, 0.95));
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #4a69bd;
    box-shadow: 0 10px 30px rgba(74, 105, 189, 0.2);
    backdrop-filter: blur(10px);
}

.admin-chart-container h3 {
    color: #4a69bd;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(74, 105, 189, 0.4);
}

.admin-bookings-table {
    background: linear-gradient(145deg, rgba(47, 54, 64, 0.95), rgba(30, 39, 46, 0.95));
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #4a69bd;
    box-shadow: 0 10px 30px rgba(74, 105, 189, 0.2);
    backdrop-filter: blur(10px);
}

.admin-bookings-table h3 {
    color: #4a69bd;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(74, 105, 189, 0.4);
}

.admin-table-container {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    color: #f5f6fa;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(164, 176, 190, 0.2);
    font-size: 1rem;
}

.admin-table th {
    background: rgba(74, 105, 189, 0.2);
    color: #4a69bd;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table tr:hover {
    background: rgba(74, 105, 189, 0.1);
}

.admin-filter-section {
    background: linear-gradient(145deg, rgba(47, 54, 64, 0.95), rgba(30, 39, 46, 0.95));
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #4a69bd;
    box-shadow: 0 10px 30px rgba(74, 105, 189, 0.2);
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.admin-filter-section h3 {
    color: #4a69bd;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(74, 105, 189, 0.4);
}

.admin-filter-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.admin-filter-controls select,
.admin-filter-controls button {
    padding: 12px 16px;
    border: 2px solid #4a69bd;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #f5f6fa;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

.admin-filter-controls select:focus {
    border-color: #6a89cc;
    outline: none;
    box-shadow: 0 0 15px rgba(106, 137, 204, 0.3);
}

.admin-filter-controls button {
    background: #4a69bd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-filter-controls button:hover {
    background: #3c5291;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 105, 189, 0.4);
}

/* Mobile Responsive for Admin Dashboard */
@media (max-width: 768px) {
    .admin-charts-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .admin-navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .admin-navbar h1 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .admin-navbar .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .admin-navbar a {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .admin-filter-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .admin-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .admin-stat-card {
        padding: 20px 15px;
    }
    
    .admin-stat-card .number {
        font-size: 2rem;
    }
    
    .admin-container {
        padding: 20px 15px;
    }
    
    .admin-chart-container,
    .admin-bookings-table,
    .admin-filter-section {
        padding: 20px 15px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 8px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .admin-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .admin-stat-card h3 {
        font-size: 0.8rem;
    }
    
    .admin-stat-card .number {
        font-size: 2rem;
    }
}



/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .hero-content {
    text-align: center;
}

[dir="rtl"] .modal-content {
    /* Added subtle gold border on modal */
    border: 2px solid var(--primary-color);
    text-align: right;
}

[dir="rtl"] .form-group label {
    text-align: right;
}

[dir="rtl"] .gender-selection,
[dir="rtl"] .booking-type-selection,
[dir="rtl"] .table-type-selection {
    direction: rtl;
}

[dir="rtl"] .checkbox-label {
    flex-direction: row-reverse;
}

[dir="rtl"] .checkmark {
    margin-left: 15px;
    margin-right: 0;
}

[dir="rtl"] .optional-text {
    margin-right: 8px;
    margin-left: 0;
}

/* Booking Type Selection */
.booking-type-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.booking-type-option {
    padding: 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-color);
    backdrop-filter: blur(10px);
}

.booking-type-option:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.booking-type-option.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(74, 105, 189, 0.5);
    color: #fff;
    transform: translateY(-2px);
}

/* Table Type Selection */
.table-type-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.table-type-option {
    padding: 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-color);
    backdrop-filter: blur(10px);
}

.table-type-option:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.table-type-option.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(74, 105, 189, 0.5);
    color: #fff;
    transform: translateY(-2px);
}

/* QR Code Container */
.qr-code-container {
    margin: 20px 0;
    padding: 25px;
    background: #ffffff;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #e0e0e0;
}

.qr-code-container canvas {
    max-width: 200px;
    height: auto;
    margin: 0 auto;
    display: block;
    background: #ffffff !important;
    border: 3px solid #000000;
    border-radius: 8px;
    padding: 10px;
}

.qr-instruction {
    color: #333333;
    font-weight: 700;
    margin-top: 15px;
    font-size: 1.1rem;
    text-shadow: none;
}

/* WhatsApp Confirmation */
.whatsapp-confirmation {
    margin: 20px 0;
    padding: 20px;
    background: rgba(37, 211, 102, 0.1);
    border: 2px solid rgba(37, 211, 102, 0.3);
    border-radius: 15px;
    text-align: center;
}

.whatsapp-confirmation h3 {
    color: #25d366;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.whatsapp-confirmation p {
    color: var(--text-color);
    margin-bottom: 5px;
}

.whatsapp-note {
    font-size: 1rem;
    color: var(--accent-color);
    font-style: italic;
    margin-bottom: 15px;
}

.whatsapp-btn {
    display: inline-block;
    padding: 12px 25px;
    background: #25d366;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.whatsapp-btn:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* Location Info */
.location-info {
    margin: 20px 0;
}

.location-btn {
    display: inline-block;
    padding: 12px 25px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.location-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Female Guest Name Input */
.female-guest-input {
    border: 2px solid #e91e63;
    background: rgba(233, 30, 99, 0.1);
}

.female-guest-input::placeholder {
    color: #e91e63;
    font-weight: 600;
}

/* Scanner Styles */
.scanner-container {
    background: linear-gradient(145deg, rgba(47, 54, 64, 0.95), rgba(30, 39, 46, 0.95));
    padding: 30px;
    border-radius: 20px;
    border: 2px solid #4a69bd;
    box-shadow: 0 15px 40px rgba(74, 105, 189, 0.3);
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.scanner-container h2 {
    color: #4a69bd;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(74, 105, 189, 0.6);
}

.scanner-video {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 15px;
    border: 3px solid #4a69bd;
    margin-bottom: 20px;
}

.scanner-result {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #4a69bd;
    margin-top: 20px;
    backdrop-filter: blur(10px);
}

.scanner-result h3 {
    color: #4a69bd;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.booking-details {
    text-align: left;
    color: var(--text-color);
}

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

.booking-details .detail-label {
    font-weight: 600;
    color: var(--accent-color);
}

.booking-details .detail-value {
    font-weight: 400;
}

.scanner-error {
    background: rgba(235, 59, 90, 0.2);
    border: 2px solid #eb3b5a;
    color: #eb3b5a;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    font-weight: 600;
}

.scanner-success {
    background: rgba(40, 167, 69, 0.2);
    border: 2px solid #28a745;
    color: #28a745;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    font-weight: 600;
}

/* Search and Price Management */
.search-container {
    background: linear-gradient(145deg, rgba(47, 54, 64, 0.95), rgba(30, 39, 46, 0.95));
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #4a69bd;
    box-shadow: 0 10px 30px rgba(74, 105, 189, 0.2);
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.search-container h3 {
    color: #4a69bd;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(74, 105, 189, 0.4);
}

.search-form {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 2px solid #4a69bd;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #f5f6fa;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.search-input:focus {
    border-color: #6a89cc;
    outline: none;
    box-shadow: 0 0 15px rgba(106, 137, 204, 0.3);
}

.search-btn {
    padding: 12px 20px;
    background: #4a69bd;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-btn:hover {
    background: #3c5291;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 105, 189, 0.4);
}

.price-management {
    background: linear-gradient(145deg, rgba(47, 54, 64, 0.95), rgba(30, 39, 46, 0.95));
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #4a69bd;
    box-shadow: 0 10px 30px rgba(74, 105, 189, 0.2);
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.price-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 15px;
    align-items: end;
}

.price-input {
    padding: 12px 16px;
    border: 2px solid #4a69bd;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #f5f6fa;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.price-input:focus {
    border-color: #6a89cc;
    outline: none;
    box-shadow: 0 0 15px rgba(106, 137, 204, 0.3);
}

.update-price-btn {
    padding: 12px 20px;
    background: #28a745;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.update-price-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

/* Mobile Responsive for New Features */
@media (max-width: 768px) {
    .booking-type-selection,
    .table-type-selection {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .qr-code-container canvas {
        max-width: 150px;
    }
    
    .whatsapp-confirmation,
    .qr-code-container {
        padding: 15px;
    }
    
    .scanner-container {
        padding: 20px 15px;
    }
    
    .scanner-video {
        max-width: 250px;
    }
    
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        min-width: auto;
    }
    
    .price-form {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .booking-details {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .booking-type-option,
    .table-type-option {
        padding: 12px;
        font-size: 0.8rem;
    }
    
    .qr-code-container canvas {
        max-width: 120px;
    }
    
    .whatsapp-btn,
    .location-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .scanner-container h2 {
        font-size: 1.5rem;
    }
    
    .scanner-video {
        max-width: 200px;
    }
}



/* Countdown Container Styles */
.countdown-container {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    box-shadow: var(--shadow-medium);
}

.countdown-container h3 {
    color: var(--heading-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.countdown-container p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

#countdown {
    color: var(--warning-color);
    font-weight: 700;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#booking-code-display {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    background: rgba(74, 105, 189, 0.1);
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
}

/* Progress Bar Styles */
.countdown-progress {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

#progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--warning-color));
    width: 100%;
    border-radius: 4px;
    transition: width 0.1s linear;
    box-shadow: 0 2px 4px rgba(74, 105, 189, 0.3);
}

/* WhatsApp Button Enhanced Styles */
#whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    margin: 10px 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    border: 2px solid transparent;
}

#whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    border-color: #25D366;
}

#whatsapp-btn:active {
    transform: translateY(0);
}

/* Success Message Enhanced Styles */
.success-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.success-content {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #2c3e50 100%);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-heavy);
    border: 2px solid var(--primary-color);
    position: relative;
}

.success-content h2 {
    color: var(--heading-color);
    margin-bottom: 15px;
    font-size: 2rem;
    font-weight: 700;
}

.success-content p {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* QR Code Container Enhanced */
.qr-code-container {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: var(--shadow-medium);
    border: 3px solid var(--primary-color);
}

.qr-code-container canvas {
    max-width: 200px;
    height: auto;
    border-radius: 10px;
}

.qr-instruction {
    color: var(--dark-bg);
    font-weight: 600;
    margin-top: 10px;
    font-size: 1rem;
}

/* Responsive Design for Countdown */
@media (max-width: 768px) {
    .countdown-container {
        padding: 15px;
        margin: 15px 0;
    }
    
    .countdown-container h3 {
        font-size: 1.1rem;
    }
    
    #countdown {
        font-size: 1.5rem;
    }
    
    #booking-code-display {
        font-size: 1.1rem;
        padding: 4px 8px;
    }
    
    .success-content {
        padding: 20px;
        margin: 10px;
    }
    
    .qr-code-container canvas {
        max-width: 150px;
    }
}

/* Animation for countdown */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

#countdown {
    animation: pulse 1s infinite;
}

/* Progress bar animation */
@keyframes progressFill {
    from { width: 100%; }
    to { width: 0%; }
}

.countdown-active #progress-bar {
    animation: progressFill 5s linear;
}

