/* Modern Theme - Glassmorphism & Premium Feel */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #00ff88;
    --primary-dark: #00cc6a;
    --secondary-color: #1a1a1a;
    --bg-dark: #000000;
    --bg-light: #111111;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(0, 255, 136, 0.2);
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --gradient-main: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    --gradient-card: linear-gradient(145deg, rgba(15, 15, 15, 0.95) 0%, rgba(25, 25, 25, 0.9) 100%);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 255, 136, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 255, 136, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
}

/* Navbar Upgrade */
/* Navbar Upgrade */
.navbar {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-brand .fas {
    color: var(--primary-color);
}

.nav-menu a {
    position: relative;
    font-weight: 500;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Glassmorphism Cards */
.highlight-card,
.testimonial-card,
.facility-card,
.info-card,
.booking-step-content {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    color: var(--text-primary);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.highlight-card:hover,
.facility-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.2);
}

.section-title,
.page-title {
    color: var(--text-primary) !important;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-main);
    border-radius: 2px;
}

/* Buttons */
.btn-primary {
    background: var(--gradient-main);
    border: none;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.5);
    background: var(--gradient-main);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--text-primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(10, 10, 42, 0.7), rgba(10, 10, 42, 0.7)), url('https://images.unsplash.com/photo-1574629810360-7efbbe195018?w=1600') center/cover !important;
    position: relative;
}

.hero h1 {
    font-weight: 800;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to right, #ffffff, #a0a0a0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 4rem;
}

@media (max-width: 768px) {
    .hero {
        height: 60vh !important;
        min-height: 400px;
    }

    .hero h1 {
        font-size: 2.5rem;
        padding: 0 1rem;
    }

    /* Mobile Navbar */
    .nav-toggle {
        display: flex;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1001;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        padding: 2rem 0;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        text-align: center;
        gap: 1.5rem;
    }

    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 0.5rem 0;
        font-size: 1.1rem;
    }

    /* Layout Adjustments */
    .container {
        padding: 0 15px;
    }

    .booking-steps {
        flex-direction: column;
        gap: 1.5rem;
    }

    .booking-steps::before {
        display: none;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .pricing-table-container,
    .availability-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
        border-radius: 8px;
        border: 1px solid var(--glass-border);
    }
}

/* Base Responsive Wrapper */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

/* Slot Cards */
.slot-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.slot-card.available:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: var(--primary-color);
}

.slot-card.selected {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.slot-card.selected .slot-price {
    color: #000;
}

.slot-card.booked {
    background: rgba(255, 50, 50, 0.1);
    border-color: rgba(255, 50, 50, 0.2);
    color: rgba(255, 255, 255, 0.3);
}

/* Footers & Inputs */
.footer {
    background: #05051a;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.footer-section h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.footer-section a {
    color: var(--text-secondary) !important;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color) !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    margin-top: 2rem;
    color: var(--text-secondary);
}

/* Fix for all headings readability */
h1,
h2,
h3,
h4,
.page-title {
    color: var(--text-primary) !important;
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 1rem;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 15px rgba(0, 255, 135, 0.1);
}

/* Fix for unreadable dropdown options in dark mode */
.form-control option,
select option {
    background-color: var(--bg-light);
    color: var(--text-primary);
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* Icons */
.highlight-card i {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Toastify Override */
.toastify {
    background: rgba(20, 20, 50, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    border-radius: 8px !important;
    color: white !important;
}

/* Fixes for White Backgrounds */
.pricing-table,
.quick-availability,
.rules-section,
.contact-card,
.availability-table {
    background: var(--gradient-card) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid var(--glass-border);
    color: var(--text-primary) !important;
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.pricing-table th,
.availability-table th {
    background: rgba(0, 0, 0, 0.5) !important;
    color: var(--primary-color) !important;
    border-bottom: 1px solid var(--glass-border) !important;
}

.pricing-table td,
.availability-table td {
    border-bottom: 1px solid var(--glass-border) !important;
    color: var(--text-primary) !important;
}

.pricing-table tr:hover,
.availability-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Fix Quick Availability Inputs */
.quick-availability input,
.quick-availability select {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid var(--glass-border) !important;
    color: white !important;
}

.quick-availability input:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: var(--primary-color) !important;
}

/* Fix Info Cards Background */
.info-card {
    background: var(--gradient-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--glass-border);
}

.availability-legend {
    color: var(--text-primary);
}

/* Lightbox/Modal Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

/* Sport Selection - NEW */
.sport-selection-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
}

.control-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

.sport-card {
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    width: 250px;
    color: var(--text-primary);
}

.sport-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.sport-card.selected {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.sport-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.sport-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.sport-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.sport-selection-container.small-cards {
    gap: 1rem;
    margin: 1rem 0;
    flex-direction: row;
    /* Horizontal layout for small cards */
}

.small-cards .sport-card {
    width: 150px;
    padding: 1rem;
}

.small-cards .sport-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Availability Result Card */
.availability-summary {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 1rem;
    color: var(--text-primary);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.availability-summary h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.availability-summary p {
    margin-bottom: 1rem;
}

/* Fix for Booking Confirmation Screen */
.confirmation-info {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary) !important;
    padding: 2rem !important;
    border-radius: 12px !important;
    margin: 2rem auto !important;
    max-width: 600px !important;
}

.confirmation-info strong {
    color: var(--primary-color) !important;
    margin-right: 0.5rem;
}

.confirmation-info p {
    margin-bottom: 0.8rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
    font-size: 1.05rem;
}

.confirmation-info p:last-child {
    border-bottom: none;
}

.availability-result {
    width: 100%;
    background: transparent !important;
    color: var(--text-primary) !important;
    margin-top: 2rem;
}

/* Fix Steps Background - NEW */
.step {
    background: transparent !important;
    color: var(--text-primary) !important;
}

.step-number {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
}

.step.active .step-number {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

.step-label {
    margin-top: 0.5rem;
    font-weight: 500;
}

.booking-steps::before {
    background: rgba(255, 255, 255, 0.1);
}