/* ============================================ */
/* SECTION 1: GOOGLE FONTS & BASE IMPORTS       */
/* ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');


/* ============================================ */
/* SECTION 2: MAIN LAYOUT (CUSTOMER & ADMIN)    */
/* ============================================ */
.main-layout {
    display: flex;
    width: 100%;
}

.content {
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto;
    justify-content: center;
    background-color: #f8fafc;
    background-image: linear-gradient(to right, #cbd5e1 1px, transparent 1px),
                      linear-gradient(to bottom, #cbd5e1 1px, transparent 1px);
    background-size: 40px 40px;
    background-attachment: fixed;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 25px;
}


/* ============================================ */
/* SECTION 3: BODY BASE STYLES  (for all pages) */
/* ============================================ */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    background-image: linear-gradient(to right, #cbd5e1 1px, transparent 1px), 
                      linear-gradient(to bottom, #cbd5e1 1px, transparent 1px);
    background-size: 40px 40px;
    background-attachment: fixed;
    color: #1C1C1A;
    min-height: 100vh;
}


/* ============================================ */
/* SECTION 4: TOP BAR / HEADER (ADMIN & CUSTOMER)*/
/* ============================================ */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-bottom: 1px solid #e2e8f0;
    height: 43px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 65px;
    height: auto;
    display: block;
}

.logo-text-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 15px;
}

.logo-Octagon {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    font-size: 1.25rem;
}

.logo-tech {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    font-size: 1.25rem;
    color: #22c55e;
}

.logo-tag {
    font-size: 9px;
    background-color: #dcfce7;
    color: #15803d;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    margin-left: 8px;
    text-transform: uppercase;
}

.logout-button {
    background-color: rgba(127, 29, 29, 0.2);
    color: #ef4444;
    border: 1px solid #7f1d1d;
    padding: 2px 8px;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

.logout-button:hover {
    background-color: #dc2626;
    color: white;
}


/* ============================================ */
/* SECTION 5: SIDEBAR NAVIGATION (ADMIN ONLY)   */
/* ============================================ */
.sidebar {
    width: 200px;
    background-color: #edf2f7;
    color: white;
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: black;
}

.nav-links a {
    display: block;
    padding: 12px;
    color: black;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: black;
    background-color: darkgray;
}

.sidebar-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 10ox 0 20px 0;
    width: 100%;
}


/* ============================================ */
/* SECTION 6: DASHBOARD STATS CARDS (ADMIN)     */
/* ============================================ */
.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.stats-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    width: 100%;
    justify-content: space-between;
}

.stat-card {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    border-color: #22c55e;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.stat-label {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 900;
    color: black;
    letter-spacing: 1px;
    font-style: italic;
}

.stat-value {
    font-size: 24px;
    font-weight: 900;
    margin-top: 10px;
}

.stat-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex: 1;
    min-width: 0;
}


/* ============================================ */
/* SECTION 7: COLOR UTILITIES                   */
/* ============================================ */
.text-orange {
    color: #f97316;
}

.text-green {
    color: #22c55e;
}


/* ============================================ */
/* SECTION 8: SECTION HEADERS & CARDS           */
/* ============================================ */
.overview-section {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 900;
}


/* ============================================ */
/* SECTION 9: ADMIN TABLES (BOOKINGS, FACILITY, EQUIPMENT) */
/* ============================================ */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th {
    font-size: 10px;
    text-transform: uppercase;
    color: black;
    padding-bottom: 15px;
    border-bottom: 1px solid #1f2937;
}

.admin-table td {
    padding: 15px 0;
    border-bottom: 1px solid #1f2937;
    font-size: 13px;
}


/* ============================================ */
/* SECTION 10: STATUS BADGES                    */
/* ============================================ */
.badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    display: inline-block;
}

.badge.pending {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
}

.badge.active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.badge.completed {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.text-dim {
    color: #6b7280;
    font-size: 12px;
}


/* ============================================ */
/* SECTION 11: ACTION BUTTONS (EDIT/DELETE)     */
/* ============================================ */
.action-btn {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-action {
    background: transparent;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.btn-edit {
    border: 1px solid #374151;
    color: black;
}

.btn-edit:hover {
    border-color: darkslategray;
    color: black;
    background-color: rgba(34, 197, 94, 0.1);
}

.admin-btn-delete {
    border: 1px solid #7f1d1d;
    color: #ef4444;
}

.admin-btn-delete:hover {
    background-color: #dc2626;
    color: white;
    border-color: #dc2626;
}


/* ============================================ */
/* SECTION 12: SEARCH CONTAINER & INPUTS        */
/* ============================================ */
.search-container {
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.search-row {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 20px 25px;
}

.search-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

.search-input {
    background: whitesmoke;
    border: 1px solid #374151;
    color: black;
    padding: 10px 15px;
    border-radius: 6px;
    outline: none;
    width: 300px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: #22c55e;
    color: #0b1120;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}


/* ============================================ */
/* SECTION 13: REVENUE SPLIT (ANALYTICS)        */
/* ============================================ */
.revenue-split {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    font-size: 13px;
}

.revenue-split-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rev-split-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.rev-split-line {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}


/* ============================================ */
/* SECTION 14: ANALYTICS CHARTS                 */
/* ============================================ */
.analytics-row {
    display: flex;
    gap: 20px;
    width: 100%;
    margin-bottom: 30px;
}

.chart-card {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    flex: 1;
    min-width: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.chart-title {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 900;
    color: black;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}


/* ============================================ */
/* SECTION 15: MODALS (ADD/EDIT FORMS)          */
/* ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.modal-card {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 30px;
    border-radius: 8px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.7);
    display: block;
}

.modal-card h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: black;
    font-size: 18px;
    font-weight: 700;
}

.modal-card form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.modal-card .search-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: block;
}

.modal-btn-row {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
}

.modal-btn-row button {
    flex: 1;
}

/* ============================================ */
/* SECTION 16: FACILITY-CUST (TIME SLOT)        */
/* ============================================ */
        .equipment-card {
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .equipment-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }
        .time-slot {
            transition: all 0.2s;
            cursor: pointer;
        }
        .time-slot:hover:not(.booked):not(.selected) {
            transform: scale(1.02);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        .time-slot.booked {
            cursor: not-allowed;
            opacity: 0.5;
            text-decoration: line-through;
        }
        .time-slot.selected {
            background-color: #22c55e !important;
            color: white !important;
            border-color: #16a34a !important;
        }

/* ============================================ */
/* SECTION 17: INDEX DISPLAY                    */
/* ============================================ */

        .logo{
            width: 60px;  /* Smaller logo */
            height: auto;
            display: block;
        }
        /* Infinite Scrolling Hero Slider - WIDE VERSION */
        .hero-wrapper {
            position: relative;
            overflow: hidden;
            border-radius: 24px;
            margin-bottom: 4rem;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            height: 450px;
        }

        .slider-background {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
        }

        .slider-track {
            display: flex;
            width: calc(500px * 16); /* Wider images: 500px each */
            animation: scrollSlides 90s linear infinite;
            height: 100%;
        }

        .slider-track img {
            width: 500px;      /* Wider images */
            height: 100%;
            object-fit: cover;
            flex-shrink: 0;
            opacity: 0.9;
        }

        @keyframes scrollSlides {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(calc(-500px * 8));
            }
        }

        .hero-overlay {
            position: relative;
            z-index: 1;
            background: rgba(255, 255, 255, 0.88);
            backdrop-filter: blur(8px);
            margin: 2rem;
            padding: 2rem;
            border-radius: 24px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            text-align: center;
        }

/* ============================================ */
/* SECTION 17: LOGIN DISPLAY                    */
/* ============================================ */
        body { 
            font-family: 'Inter', sans-serif; 
            background-color: #f8fafc;
            background-image: linear-gradient(to right, #e2e8f0 1px, transparent 1px),
                              linear-gradient(to bottom, #e2e8f0 1px, transparent 1px);
            background-size: 40px 40px;
        }

/* ============================================ */
/* SECTION 18: RATING FORM                      */
/* ============================================ */
        @media print {
            .no-print { display: none; }
            .print-only { display: block; }
        }
        .print-only { display: none; }
        
        /* Rating Stars CSS */
        .star-rating {
            display: flex;
            flex-direction: row-reverse;
            justify-content: flex-end;
            gap: 10px;
        }
        .star-rating input {
            display: none;
        }
        .star-rating label {
            font-size: 30px;
            color: #ddd;
            cursor: pointer;
            transition: color 0.2s;
        }
        .star-rating label:hover,
        .star-rating label:hover ~ label,
        .star-rating input:checked ~ label {
            color: #ffc107;
        }
        .review-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }
        .review-modal-content {
            background: white;
            border-radius: 12px;
            padding: 25px;
            width: 90%;
            max-width: 500px;
        }

/* ============================================ */
/* SECTION 19: PROFILE DISPLAY                  */
/* ============================================ */
        .profile-container {
            max-width: 900px;
            margin: 0 auto;
            padding: 20px;
        }
        .profile-card {
            background: white;
            border-radius: 16px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        .profile-header {
            background: linear-gradient(135deg, #22c55e, #15803d);
            padding: 20px;
            text-align: center;
        }
        .profile-header h1 {
            color: white;
            font-size: 24px;
            font-weight: 900;
            margin: 0;
        }
        .profile-header p {
            color: rgba(255,255,255,0.8);
            font-size: 12px;
            margin-top: 5px;
        }
        .profile-body {
            padding: 30px;
        }
        .info-row {
            display: flex;
            padding: 12px 0;
            border-bottom: 1px solid #e5e7eb;
        }
        .info-label {
            width: 120px;
            font-weight: 700;
            color: #374151;
        }
        .info-value {
            flex: 1;
            color: #1f2937;
        }
        .edit-form {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 2px solid #e5e7eb;
        }
        .form-group {
            margin-bottom: 15px;
        }
        .form-group label {
            display: block;
            font-weight: 700;
            font-size: 12px;
            text-transform: uppercase;
            color: #6b7280;
            margin-bottom: 5px;
        }
        .form-group input {
            width: 100%;
            padding: 10px;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            font-size: 14px;
        }
        .form-group input:focus {
            outline: none;
            border-color: #22c55e;
            ring: 2px solid #22c55e;
        }
        .btn-group {
            display: flex;
            gap: 10px;
            margin-top: 20px;
        }
        .btn {
            padding: 10px 20px;
            border-radius: 8px;
            font-weight: 700;
            font-size: 12px;
            text-transform: uppercase;
            cursor: pointer;
            border: none;
            transition: all 0.3s;
            text-decoration: none;
            display: inline-block;
            text-align: center;
        }
        .btn-profile {
            background: #22c55e;
            color: white;
        }
        .btn-profile:hover {
            background: #16a34a;
        }
        .btn-change {
            background: #f59e0b;
            color: white;
        }
        .btn-change:hover {
            background: #d97706;
        }
        .profile-btn-delete {
            background: #ef4444;
            color: white;
        }
        .profile-btn-delete:hover {
            background: #dc2626;
        }
        .btn-back {
            background: #9ca3af;
            color: white;
        }
        .btn-back:hover {
            background: #6b7280;
        }
        .success-msg {
            background: #dcfce7;
            border-left: 4px solid #22c55e;
            color: #166534;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 20px;
        }
        .error-msg {
            background: #fee2e2;
            border-left: 4px solid #ef4444;
            color: #991b1b;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 20px;
        }
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }
        .modal-content {
            background: white;
            border-radius: 16px;
            padding: 25px;
            max-width: 400px;
            margin: 20px;
        }
        .inline-btn {
            display: inline-block;
        }

/* ============================================ */
/* SECTION 20: SHOP DISPLAY                     */
/* ============================================ */
        .court-image { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; }
        .shop-search-container {
            background: white;
            border-radius: 12px;
            margin-bottom: 30px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            border: 1px solid #e2e8f0;
        }
        .shop-search-input {
            border: 1px solid #e2e8f0;
            padding: 10px 15px;
            border-radius: 8px;
            width: 300px;
            outline: none;
            transition: all 0.3s;
        }
        .shop-search-input:focus {
            border-color: #22c55e;
            box-shadow: 0 0 0 2px rgba(34,197,94,0.1);
        }
        .btn-search {
            background: #22c55e;
            color: white;
            padding: 10px 20px;
            border-radius: 8px;
            font-weight: 700;
            font-size: 12px;
            text-transform: uppercase;
            border: none;
            cursor: pointer;
            transition: all 0.3s;
        }
        .btn-search:hover {
            background: #16a34a;
        }
        .back-link {
            display: inline-block;
            margin-bottom: 20px;
        }

/* ============================================ */
/* SECTION 21: USER HELP SYSTEM                  */
/* ============================================ */
        .faq-question {
            cursor: pointer;
            transition: all 0.3s;
        }
        .faq-question:hover {
            background-color: #f3f4f6;
        }
        .faq-answer {
            display: none;
            padding: 15px 20px;
            background-color: #f9fafb;
            border-radius: 8px;
            margin-top: 5px;
        }
        .faq-answer.show {
            display: block;
        }
        .contact-card {
            transition: transform 0.3s;
        }
        .contact-card:hover {
            transform: translateY(-5px);
        }

