:root {
    --nba-green: #1d5b1d;
    --nba-light-green: #2e8b57;
    --nba-extra-dark: #0f300f;
    --accent-gold: #fbaf3b;
    --accent-orange: #f4a261;
    --white: #ffffff;
    --off-white: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--off-white);
    line-height: 1.6;
}

/* Header & Navigation */
.top-bar {
    background: var(--nba-extra-dark);
    color: var(--white);
    padding: 0.5rem 10%;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

header {
    background: var(--white);
    padding: 1rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container img {
    height: 50px;
}

.logo-text h1 {
    font-size: 1.2rem;
    color: var(--nba-green);
    font-weight: 800;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--nba-green);
}

.cta-nav {
    background: var(--accent-gold);
    color: var(--white) !important;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 700;
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(15, 48, 15, 0.85), rgba(15, 48, 15, 0.85)), url('../images/hero_bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 10%;
    color: var(--white);
}

.hero h2 {
    font-size: 3.5rem;
    font-weight: 900;
    max-width: 600px;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 500px;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s, background 0.3s;
}

.btn-primary:hover {
    background: #e69a2e;
    transform: translateY(-2px);
}

.btn-video {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.btn-video i {
    font-size: 2.5rem;
    color: var(--accent-gold);
}

/* Feature Section */
.features {
    padding: 5rem 10%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    text-align: left;
    transition: transform 0.3s;
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--nba-green);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(29, 91, 29, 0.1);
    color: var(--nba-green);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Booking Section (Form) */
.booking-section {
    padding: 5rem 10%;
    background: var(--off-white);
}

.booking-container {
    background: var(--nba-green);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.booking-form-area {
    padding: 4rem;
    flex: 1.5;
    color: var(--white);
}

.booking-image-area {
    flex: 1;
    background: url('../images/court_bg_new.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: none;
    /* Hidden on small screens */
}

@media (min-width: 1024px) {
    .booking-image-area {
        display: block;
    }
}

.booking-form-area h4 {
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.booking-form-area h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.grid-full {
    grid-column: span 2;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.input-group input,
.input-group select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    color: var(--white);
    border-radius: 5px;
    outline: none;
}

.input-group select option {
    background: var(--nba-extra-dark);
    color: var(--white);
}

.btn-book {
    background: var(--accent-gold);
    color: var(--white);
    padding: 1.2rem;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 2rem;
    width: 100%;
}

/* Stats/Support Bar */
.support-bar {
    background: var(--nba-extra-dark);
    padding: 3rem 10%;
    display: flex;
    justify-content: space-around;
    color: var(--white);
    text-align: center;
}

.support-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.support-item i {
    font-size: 2rem;
    color: var(--accent-gold);
}

/* Footer */
footer {
    background: var(--nba-extra-dark);
    color: var(--white);
    padding: 5rem 10% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--accent-gold);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: var(--white);
}

.newsletter {
    display: flex;
    gap: 0;
    margin-top: 1rem;
}

.newsletter input {
    background: #1e293b;
    border: none;
    padding: 1rem;
    border-radius: 5px 0 0 5px;
    color: var(--white);
    flex: 1;
}

.newsletter button {
    background: var(--nba-green);
    border: none;
    padding: 0 1.5rem;
    color: var(--white);
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Flash Messages */
.flash-container {
    padding: 1rem 10%;
}

.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.alert-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.alert-success {
    background: #dcfce7;
    color: #15803d;
}

/* Desktop/Responsive Adjustments */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    header {
        padding: 1rem 5%;
    }

    nav ul {
        display: none;
    }

    .hero {
        padding: 0 5%;
    }

    .booking-grid {
        grid-template-columns: 1fr;
    }

    .grid-full {
        grid-column: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Admin Dashboard Styles */
.admin-dashboard-container {
    padding: 4rem 10%;
    min-height: 80vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.admin-header h2 {
    font-size: 2rem;
    color: var(--nba-extra-dark);
    font-weight: 800;
}

.btn-logout {
    padding: 0.8rem 1.5rem;
    background: #fee2e2;
    color: #b91c1c;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: #fecACA;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.stat-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

.stat-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.data-section {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.data-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid #edf2f7;
}

.data-header h3 {
    color: var(--text-dark);
    font-weight: 700;
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-group i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
}

.search-input-group input {
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    width: 300px;
    outline: none;
    transition: border-color 0.3s;
}

.search-input-group input:focus {
    border-color: var(--nba-green);
}

.btn-search {
    background: var(--nba-green);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-search:hover {
    background: var(--nba-light-green);
}

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

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: var(--off-white);
    padding: 1rem 2rem;
    text-align: left;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

td {
    padding: 1.2rem 2rem;
    border-bottom: 1px solid #edf2f7;
    font-size: 0.95rem;
}

.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.badge-success {
    background: #dcfce7;
    color: #15803d;
}

.badge-pending {
    background: #fef3c7;
    color: #b45309;
}

.badge-failed {
    background: #fee2e2;
    color: #b91c1c;
}

.ref-col {
    font-family: monospace;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .admin-dashboard-container {
        padding: 2rem 5%;
    }
}
/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 48, 15, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease-out;
}

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

.modal-header {
    background: var(--nba-green);
    color: var(--white);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 { font-size: 1.3rem; margin: 0; }

.close-modal {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.close-modal:hover { opacity: 1; }

.modal-body {
    padding: 2.5rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.profile-item label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.profile-item p {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
}

.profile-full { grid-column: span 2; }

.btn-view {
    background: rgba(29, 91, 29, 0.1);
    color: var(--nba-green);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-view:hover {
    background: var(--nba-green);
    color: var(--white);
}

@media (max-width: 640px) {
    .data-header { flex-direction: column; gap: 1.5rem; align-items: stretch; }
    .search-input-group input { width: 100%; }
    .profile-grid { grid-template-columns: 1fr; }
    .profile-full { grid-column: auto; }
}
