/* =========================================================
   STYLE.CSS - CANDRA WIJAYA INTERNATIONAL BADMINTON CENTRE
   (Optimized & Refactored)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:wght@300;400;500;600;700&display=swap');

/* --- 1. VARIABLES --- */
:root {
    /* Color Palette */
    --navy: #1c3d8a;
    --navy-dark: #122a61;
    --navy-darker: #0c1a3b;
    --gold: #f5a31f;
    --gold-light: #f7de79;
    --white: #ffffff;
    --bg-light: #f4f7f6;
    --text-dark: #0e1f47;
    --text-muted: #8a9ab8;
    --border-color: #e2e8f0;
    --success: #10b981;
    --danger: #ef4444;
    
    /* Layout Measurements */
    --sidebar-width: 250px;
    --header-height: 75px;
    --radius: 8px;
    --transition: 0.3s ease;
}

/* --- 2. BASE, RESET & TYPOGRAPHY --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    box-sizing: border-box;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
}

/* Global Font Assignments */
body, input, button, textarea, select {
    font-family: 'Barlow', sans-serif;
}

h1, h2, h3, h4, .header-brand, .sidebar-brand, .hero-title, .stat-value, .dash-welcome {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================================
   STYLE.CSS - CANDRA WIJAYA INTERNATIONAL BADMINTON CENTRE
   (Updated with Client Theme: Inter & Plus Jakarta Sans)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* --- 1. VARIABLES --- */
:root {
    /* Client Color Palette */
    --primary: #0f4c81;
    --primary-dark: #0a365c;
    --primary-light: #e8f2fc;
    --gold: #facc15;
    --gold-light: #eab308;
    
    /* Global Background & Text */
    --white: #ffffff;
    --bg-light: #f8fafc; /* slate-50 */
    --text-main: #1e293b; /* slate-800 */
    --text-heading: #0f172a; /* slate-900 */
    --text-muted: #475569; /* slate-600 */
    
    /* Default Border (Soft Blue-ish/Slate) */
    --border-color: #dbeafe; /* blue-100 */
    --border-color-darker: #e2e8f0; /* slate-200 */
    
    --success: #10b981;
    --danger: #ef4444;
    
    /* Layout Measurements */
    --sidebar-width: 250px;
    --header-height: 96px; /* Diperbesar sesuai desain client */
    --radius: 8px;
    --transition: 0.2s ease;
}

/* --- 2. BASE, RESET & TYPOGRAPHY --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    box-sizing: border-box;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Khusus untuk judul dan brand menggunakan Plus Jakarta Sans */
h1, h2, h3, h4, h5, h6, .header-brand, .sidebar-brand, .hero-title, .stat-value, .dash-welcome {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-heading);
    letter-spacing: normal;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- 3. GLOBAL UTILITIES (GROUPED PROPERTIES) --- */
/* Global Transitions */
.nav-link, .nav-link::after, .btn, .btn-outline, .btn-solid, .btn-login, 
.btn-hero-solid, .btn-hero-outline, .btn-about, .btn-view-all, .btn-view-all-small, 
.btn-upload-new, .btn-edit-profile, .date-nav-btn, .page-link, .social-btn, .social-icon, 
.form-control, .input-pill, .cart-icon-btn svg, .cart-remove-btn, .modal-search-close, 
.menu-item, .setting-link-item, .facility-card, .dash-card, .academy-card, .academy-link, 
.cell-available a, .cell-booked, .cell-passed, .footer-links a, .footer-contact-item {
    transition: var(--transition);
}

/* Global Flex Centering */
.avatar, .social-btn, .social-icon, .dash-card-icon, .cart-icon-btn, .cart-badge, 
.cart-remove-btn, .page-link, .modal-search, .cell-available a, .about-image-side, 
.academy-img-wrapper, .facility-img {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Global Background Image Settings */
.auth-body, .login-image, .hero-section, .dashboard-body {
    background-size: cover;
    background-position: center;
}
.auth-body, .hero-section, .dashboard-body {
    background-attachment: fixed;
}

/* Shared Input Focus */
.form-control:focus, .input-pill:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 2px rgba(28, 61, 138, 0.1);
}

/* Base Card Styles */
.card, .facility-card, .booking-container, .data-table-wrapper {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}
.card, .facility-card {
    overflow: hidden;
}

/* Shared Section Labels (The Gold Titles) */
.about-label, .academy-label, .facilities-label, .dash-header-label {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
}
.about-label, .academy-label, .facilities-label {
    gap: 15px;
    font-size: 14px;
    margin-bottom: 20px;
}
.about-label::before, .academy-label::before, .facilities-label::before, .dash-header-label::before {
    content: '';
    height: 2px;
    background-color: var(--gold);
}
.about-label::before, .academy-label::before, .facilities-label::before {
    width: 35px;
}

/* Shared Grid Layouts */
.grid-3, .academy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

/* Shared Buttons Background/Color/Hover */
.btn-primary, .btn-solid, .btn-login, .btn-about, .btn-view-all {
    background-color: var(--navy);
    color: var(--white);
}
.btn-primary:hover, .btn-solid:hover, .btn-login:hover, .btn-about:hover, .btn-view-all:hover {
    background-color: var(--navy-dark);
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--navy);
    color: var(--navy);
}
.btn-outline:hover {
    background-color: var(--navy);
    color: var(--white);
}

/* Shared Button Structure */
.btn { display: inline-block; padding: 10px 20px; border-radius: 4px; font-weight: 600; cursor: pointer; border: none; text-align: center; }
.btn-solid, .btn-outline { padding: 8px 18px; border-radius: 20px; font-size: 14px; font-weight: 600; }
.btn-gold { background-color: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background-color: var(--gold-light); }

/* Placeholder Texts */
.image-placeholder-text, .academy-placeholder, .facility-img {
    color: var(--text-muted);
    font-weight: 700;
    opacity: 0.6;
    text-align: center;
}

/* --- 4. GLOBAL HEADER / NAVBAR --- */
.main-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    /* Menyesuaikan warna background agar lebih pas dengan versi client */
    background-color: rgba(255, 255, 255, 1);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    min-height: 96px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.header-gradient-strip {
    height: 4px;
    width: 100%;
    background: linear-gradient(to right, var(--primary), #2563eb, var(--gold));
}

.header-container { 
    width: 100%; max-width: 1280px; margin: 0 auto; padding: 15px 20px; 
    display: flex; justify-content: space-between; align-items: center; 
    flex-grow: 1;
    /* Memberikan jarak renggang di antara logo, menu, dan action button */
    gap: 20px; 
}

/* Penyesuaian Ukuran Logo */
.header-brand { display: flex; align-items: center; flex-shrink: 0; }
.header-brand img { 
    height: 80px; /* Ukuran logo dinaikkan agar proporsional */
    object-fit: contain; 
    transition: transform 0.3s ease;
}
.header-brand img:hover { transform: scale(105%); }
.header-brand span { display: none; } 

/* Mengisi ruang kosong tengah untuk menu agar sejajar proporsional */
.nav-wrapper { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    flex-grow: 1; 
}

/* Jarak antar menu */
.header-nav { 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    /* Menggeser menu sedikit ke kanan dari logo */
    margin-left: 20px; 
}
.header-actions { display: flex; align-items: center; gap: 12px; }

/* Menu Navigasi */
.nav-link { 
    font-size: 14px; 
    font-weight: 600; 
    color: var(--text-muted); 
    padding: 8px 14px; 
    border-radius: 8px;
    transition: all 0.2s ease;
}
.nav-link:hover { 
    color: var(--primary); 
    background-color: var(--primary-light); 
}
.nav-link.active {
    background-color: var(--primary);
    color: var(--white);
}

/* Tombol Header Actions */
.btn-login-header {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 14px;
    font-size: 14px; font-weight: 600;
    color: var(--primary);
    background-color: var(--white);
    border: 1px solid var(--border-color); /* Disesuaikan agar border tidak terlalu gelap */
    border-radius: 8px;
    transition: all 0.2s ease;
}
.btn-login-header:hover { background-color: var(--primary-light); }

.btn-book-header {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 16px;
    font-size: 14px; font-weight: 700;
    color: var(--text-heading);
    background-color: var(--gold);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

/* Efek Hover Spesifik untuk Tombol 'Book a Court' */
.btn-book-header:hover {
    background-color: var(--gold-light);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); /* Menambah intensitas bayangan saat hover */
}
/* Efek saat tombol ditekan (active scale) seperti client */
.btn-book-header:active {
    transform: scale(0.95);
}

.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 5px; }
.mobile-menu-btn svg { width: 28px; height: 28px; fill: var(--primary); }

/* --- 5. FORMS & AUTHENTICATION --- */
.card-header { padding: 15px 20px; border-bottom: 1px solid var(--border-color); font-weight: 600; background-color: rgba(244, 247, 246, 0.5); }
.card-body { padding: 20px; }

.form-group, .input-wrapper { margin-bottom: 15px; }
.form-label, .input-wrapper label { display: block; font-weight: 500; }
.form-label { margin-bottom: 5px; font-size: 14px; }
.input-wrapper label { font-size: 13px; color: #888; margin-bottom: 8px; }

.form-control, .input-pill { width: 100%; border: 1px solid var(--border-color); }
.form-control { padding: 10px 12px; border-radius: 4px; font-size: 15px; }
.input-pill { padding: 12px 20px; border-radius: 25px; font-size: 14px; }

.auth-body {
    background-image: linear-gradient(to bottom right, rgba(255, 255, 255, 0.95), rgba(28, 61, 138, 0.5)), url('../asset/loginBackground.webp');
    min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 120px 20px 20px 20px;
}
.login-wrapper { width: 100%; max-width: 850px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.login-card { background: var(--white); border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); display: flex; width: 100%; overflow: hidden; }
.login-image { display: none; flex: 1; background-image: url('../asset/loginBackground.webp'); }
.login-form-side, .auth-form-side { flex: 1; padding: 40px 30px; display: flex; flex-direction: column; justify-content: center; }

.login-title { font-size: 28px; font-weight: 700; text-align: center; margin-bottom: 30px; color: #111; }
.login-options { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-bottom: 25px; }
.remember-me { display: flex; align-items: center; gap: 6px; color: #888; cursor: pointer; }
.forgot-pwd { color: var(--navy); font-weight: 600; }
.forgot-pwd:hover { text-decoration: underline; }

.btn-login { width: 100%; padding: 14px; border: none; border-radius: 25px; font-size: 15px; font-weight: 600; cursor: pointer; margin-bottom: 25px; }

.login-divider { display: flex; align-items: center; text-align: center; color: #aaa; font-size: 12px; margin-bottom: 20px; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; border-bottom: 1px solid #eee; }
.login-divider span { padding: 0 10px; }

.social-login { display: flex; justify-content: center; gap: 15px; margin-bottom: 30px; }
.social-btn { width: 45px; height: 45px; background-color: var(--navy); border-radius: 50%; }
.social-btn svg { fill: var(--white); width: 20px; height: 20px; }
.social-btn:hover { transform: translateY(-2px); }

.create-account-text { text-align: center; font-size: 13px; color: #888; }
.create-account-text a { color: var(--navy); font-weight: 600; }
.create-account-text a:hover { text-decoration: underline; }

@media (min-width: 768px) {
    .login-image { display: block; }
    .login-form-side, .auth-form-side { padding: 50px 60px; }
}

/* --- 6. LANDING PAGE SECTIONS --- */
/* Hero */
.hero-section {
    background-image: linear-gradient(to right, rgba(12, 26, 59, 0.95) 0%, rgba(12, 26, 59, 0.2) 100%), url('../asset/loginBackground.webp'); 
    height: 100vh; display: flex; align-items: center; color: var(--white); padding-top: var(--header-height); 
}
.hero-container, .about-container, .academy-container, .facilities-container, .footer-container {
    width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px;
}
.hero-content { max-width: 700px; text-align: left; animation: fadeInLeft 1s ease-out forwards; }
.hero-sponsor { font-size: 16px; letter-spacing: 4px; color: var(--gold); margin-bottom: 15px; font-weight: 600; text-transform: uppercase; }
.hero-title { font-size: 90px; line-height: 1; margin-bottom: 5px; letter-spacing: 2px; text-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.hero-subtitle { font-size: 24px; font-weight: 300; margin-bottom: 20px; letter-spacing: 2px; color: rgba(255, 255, 255, 0.9); }
.hero-desc { font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, 0.8); margin-bottom: 40px; max-width: 550px; }
.hero-actions { display: flex; gap: 20px; justify-content: flex-start; }

.btn-hero-solid, .btn-hero-outline { padding: 16px 36px; font-size: 16px; font-weight: 700; border-radius: 30px; text-transform: uppercase; cursor: pointer; }
.btn-hero-solid { background-color: var(--gold); color: var(--navy-dark); border: none; }
.btn-hero-solid:hover { background-color: var(--gold-light); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(245, 163, 31, 0.3); }
.btn-hero-outline { background-color: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-hero-outline:hover { background-color: var(--white); color: var(--navy-dark); transform: translateY(-3px); }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }

/* About Us */
.about-section, .facilities-section { padding: 100px 20px; background-color: var(--white); }
.about-container { display: flex; align-items: center; gap: 60px; }
.about-text-side, .about-image-side { flex: 1; }
.about-title { font-size: 42px; font-weight: 700; color: var(--navy-dark); line-height: 1.2; margin-bottom: 25px; }
.about-desc { font-size: 16px; line-height: 1.6; margin-bottom: 20px; opacity: 0.85; }
.btn-about { padding: 14px 32px; font-size: 14px; font-weight: 600; border-radius: 6px; text-transform: uppercase; letter-spacing: 1px; margin-top: 15px; border: none; cursor: pointer; }
.btn-about:hover { transform: translateY(-2px); }
.about-image-side { min-height: 480px; background-color: #dbe5f5; background-image: url('../asset/about-photo.jpg'); clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%); flex-direction: column; }
.image-placeholder-text { font-size: 32px; }

/* Academy */
.academy-section { background-color: var(--navy-dark); padding: 100px 20px; color: var(--white); }
.academy-header, .facilities-header { text-align: center; margin-bottom: 60px; }
.facilities-header { margin-bottom: 40px; text-align: left;}
.academy-main-title { font-size: 42px; font-weight: 700; color: var(--white); line-height: 1.2; }
.academy-grid { gap: 2px; }
.academy-card { background-color: var(--navy); display: flex; flex-direction: column; }
.academy-card:hover { background-color: #21459a; }
.academy-img-wrapper { height: 280px; background-color: #dbe5f5; background-image: linear-gradient(to bottom right, #eef2f9, #c4d3eb); clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%); }
.academy-placeholder { font-size: 28px; margin-top: -30px; }
.academy-content { padding: 20px 40px 50px 40px; flex-grow: 1; display: flex; flex-direction: column; }
.academy-title { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; }
.academy-subtitle { font-size: 15px; color: var(--text-muted); margin-bottom: 25px; font-weight: 500; }
.academy-desc { font-size: 14px; color: rgba(255, 255, 255, 0.8); line-height: 1.6; margin-bottom: 30px; flex-grow: 1; }
.academy-link { font-size: 14px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; display: inline-flex; align-items: center; }
.academy-link:hover { color: var(--gold-light); transform: translateX(5px); }

/* Facilities */
.facilities-title { font-size: 36px; font-weight: 700; color: var(--navy-dark); }
.facilities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin-bottom: 50px; }
.facility-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.facility-img { height: 220px; background-color: #dbe5f5; font-size: 24px; line-height: 1.2; }
.facility-content { padding: 20px; }
.facility-subtitle { font-size: 13px; font-weight: 700; color: var(--navy-dark); text-transform: uppercase; margin-bottom: 10px; }
.facility-desc { font-size: 14px; opacity: 0.8; line-height: 1.5; }
.facilities-action { text-align: center; }
.btn-view-all { padding: 14px 36px; border-radius: 6px; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; border: none; cursor: pointer; }

/* Footer */
.main-footer { background-color: var(--navy-darker); color: var(--white); padding: 80px 20px 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 60px; }
.footer-brand img { height: 60px; margin-bottom: 20px; }
.footer-desc { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.6; margin-bottom: 25px; max-width: 250px; }
.footer-socials { display: flex; gap: 15px; }
.social-icon { width: 35px; height: 35px; border-radius: 50%; background-color: rgba(255,255,255,0.1); }
.social-icon svg { fill: var(--white); width: 16px; height: 16px; }
.social-icon:hover { background-color: var(--gold); }
.social-icon:hover svg { fill: var(--navy-dark); }
.footer-heading { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 25px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a, .footer-contact-item { font-size: 14px; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 10px; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 25px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,0.5); }

/* --- 7. DASHBOARD & PANEL LAYOUT (LIGHT & DARK THEMES) --- */
.app-container, .dash-container { display: flex; min-height: 100vh; }
.dash-container { min-height: calc(100vh - var(--header-height)); background-color: #0a795b; align-items: stretch; }
.dashboard-body { background-color: #0a1128; background-image: linear-gradient(rgba(10, 17, 40, 0.9), rgba(10, 17, 40, 0.95)), url('../asset/loginBackground.webp'); padding-top: var(--header-height); }

.sidebar, .dash-sidebar { width: var(--sidebar-width); display: flex; flex-direction: column; position: fixed; height: 100vh; z-index: 90; overflow-y: auto; }
.sidebar { background-color: var(--navy); color: var(--white); transition: var(--transition); z-index: 100; border-right: 1px solid var(--border-color); }
.dash-sidebar { width: 260px; background-color: #0d1838; border-right: 1px solid rgba(255,255,255,0.05); padding-top: 20px; height: calc(100vh - var(--header-height)); }

.sidebar-brand { height: var(--header-height); display: flex; align-items: center; padding: 0 20px; font-size: 24px; color: var(--gold); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.sidebar-nav { padding: 20px 0; flex-grow: 1; }

.nav-item { display: block; padding: 12px 20px; color: rgba(255, 255, 255, 0.7); font-weight: 500; }
.nav-item:hover, .nav-item.active { background-color: rgba(255, 255, 255, 0.1); color: var(--gold); border-left: 4px solid var(--gold); }

.menu-item { display: flex; align-items: center; gap: 15px; padding: 16px 30px; color: rgba(255,255,255,0.6); font-size: 15px; font-weight: 500; border-left: 3px solid transparent; }
.menu-item svg { width: 20px; height: 20px; fill: currentColor; }
.menu-item:hover { color: var(--white); background-color: rgba(255,255,255,0.03); }
.menu-item.active { color: var(--gold); border-left-color: var(--gold); background: linear-gradient(90deg, rgba(245, 163, 31, 0.1) 0%, transparent 100%); }

.menu-badge { background-color: var(--gold); color: var(--navy-dark); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; margin-left: auto; }

.main-content, .dash-main { flex-grow: 1; margin-left: var(--sidebar-width); display: flex; flex-direction: column; }
.dash-main { margin-left: 260px; padding: 40px; width: calc(100% - 260px); overflow-y: auto; }
#main-frame { transition: opacity 0.2s ease-in-out; }

.top-header { height: var(--header-height); background-color: var(--white); border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; padding: 0 30px; position: sticky; top: 0; z-index: 90; }
.header-title { font-size: 24px; color: var(--navy-dark); }
.user-profile { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background-color: var(--gold); color: var(--navy); font-weight: bold; }

.content-canvas { padding: 30px; }
.stat-card { padding: 20px; display: flex; flex-direction: column; gap: 5px; }
.stat-title { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.stat-value { font-size: 32px; color: var(--navy); }

/* Dashboard Typography & Headers */
.dash-header-label { gap: 10px; font-size: 12px; border: 1px solid var(--gold); padding: 6px 16px; border-radius: 4px; margin-bottom: 25px; }
.dash-header-label::before { width: 20px; }
.dash-welcome { font-size: 32px; font-weight: 700; margin-bottom: 5px; color: var(--white); }
.dash-subtitle { font-size: 15px; color: rgba(255,255,255,0.6); margin-bottom: 40px; }

/* Dashboard Cards Layouts */
.dash-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.dash-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

.dash-card { background: linear-gradient(145deg, rgba(28, 61, 138, 0.4), rgba(18, 42, 97, 0.6)); border: 1px solid rgba(255,255,255,0.1); padding: 25px; display: flex; flex-direction: column; position: relative; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%); }
.dash-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.3); }
.dash-card-icon { width: 40px; height: 40px; background-color: var(--white); border-radius: 6px; margin-bottom: 15px; }
.dash-card-icon svg { width: 20px; height: 20px; fill: var(--navy-dark); }
.dash-card-title { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--white); margin-bottom: 5px; }
.dash-card-value { font-size: 24px; font-weight: 700; margin-bottom: 15px; color: var(--white); }
.dash-card-info { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 20px; flex-grow: 1; }
.dash-card-link { font-size: 13px; font-weight: 700; color: var(--gold); text-decoration: none; }
.dash-card-link:hover { text-decoration: underline; }

.dash-panel, .dash-panel-dark { border-radius: 8px; padding: 25px; }
.dash-panel { background-color: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.08); color: var(--white); }
.dash-panel-dark { background-color: #0f172a; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.05); padding: 24px; color: var(--white); }

.panel-header, .panel-header-alt { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.panel-title { font-size: 16px; font-weight: 600; }
.panel-title-alt { font-size: 16px; font-weight: 700; color: #ffffff; }

.btn-view-all-small { background-color: rgba(255,255,255,0.1); color: var(--white); padding: 6px 12px; border-radius: 4px; font-size: 12px; font-weight: 600; cursor: pointer; border: none; }
.btn-view-all-small:hover { background-color: rgba(255,255,255,0.2); }
.btn-panel-view-all { font-size: 12px; background-color: rgba(255, 255, 255, 0.08); color: #cbd5e1; padding: 6px 14px; border-radius: 6px; text-decoration: none; font-weight: 600; }

.dash-list-item { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 13px; }
.dash-list-item:last-child { border-bottom: none; }

.status-badge { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.status-confirmed, .badge-status-confirmed { background-color: rgba(16, 185, 129, 0.15); color: var(--success); font-weight: 700; }
.status-paid, .trans-status-paid { color: var(--success); font-weight: 600; font-size: 12px;}

/* Specific Card Styling (Gradient dark) */
.card-blue-gradient { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); border: 1px solid rgba(255, 255, 255, 0.08); position: relative; padding: 25px; border-radius: 12px; }
.dash-card-icon-container { color: #3b82f6; margin-bottom: 15px; }
.dash-card-title-alt { font-size: 11px; font-weight: 700; color: #94a3b8; letter-spacing: 1px; }
.dash-card-value-large { font-size: 36px; font-weight: 800; color: var(--white); margin: 10px 0 5px 0; }
.dash-card-subtext { font-size: 13px; color: #64748b; line-height: 1.4; margin-bottom: 20px; }
.dash-card-action-link { font-size: 12px; color: var(--gold); text-decoration: none; font-weight: 600; display: inline-block; }

/* Dashboard Lists / Transactions */
.booking-row-item { display: flex; align-items: center; background-color: rgba(255, 255, 255, 0.02); border-radius: 8px; padding: 14px; margin-bottom: 12px; border: 1px solid rgba(255, 255, 255, 0.03); }
.booking-date-block { display: flex; flex-direction: column; background-color: rgba(255, 255, 255, 0.05); border-radius: 6px; padding: 8px 12px; text-align: center; min-width: 70px; margin-right: 15px; }
.date-month-year { font-size: 12px; font-weight: 800; color: var(--white); }
.date-day-name { font-size: 10px; color: #94a3b8; margin-top: 2px; }
.booking-detail-block { flex-grow: 1; }
.booking-time-range { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 3px; }
.booking-court-name { font-size: 12px; color: #64748b; }

.transaction-row-item { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.transaction-row-item:last-child { border-bottom: none; }
.trans-left-meta, .trans-right-meta { display: flex; flex-direction: column; }
.trans-right-meta { text-align: right; }
.trans-date { font-size: 12px; color: #64748b; margin-bottom: 4px; }
.trans-desc { font-size: 14px; font-weight: 600; color: var(--white); }
.trans-amount { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.empty-state-text { padding: 30px 0; color: #475569; text-align: center; font-size: 14px; }

/* Profile Card */
.profile-card { background-color: rgba(13, 24, 56, 0.6); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; padding: 40px; display: flex; gap: 40px; margin-top: 10px; }
.profile-info-col { flex: 1; padding-right: 40px; border-right: 1px solid rgba(255, 255, 255, 0.1); }
.profile-settings-col { flex: 1; }
.profile-section-title { font-size: 18px; font-weight: 600; color: var(--white); margin-bottom: 25px; }
.profile-data-row { display: flex; margin-bottom: 20px; font-size: 14px; }
.profile-data-label { width: 150px; color: rgba(255, 255, 255, 0.6); }
.profile-data-value { flex: 1; color: var(--white); font-weight: 500; }

.btn-edit-profile { background: transparent; border: 1px solid rgba(255, 255, 255, 0.3); color: var(--white); padding: 10px 24px; border-radius: 4px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-top: 10px; cursor: pointer; }
.btn-edit-profile:hover { background-color: rgba(255, 255, 255, 0.1); border-color: var(--white); }

.setting-link-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.8); font-size: 14px; }
.setting-link-item:hover { color: var(--gold); }

.profile-picture-section { margin-top: 30px; display: flex; align-items: center; gap: 20px; }
.profile-avatar-circle { width: 80px; height: 80px; border-radius: 50%; background-color: var(--navy-darker); border: 1px solid rgba(255, 255, 255, 0.2); }
.profile-upload-info { font-size: 12px; color: rgba(255, 255, 255, 0.5); margin-bottom: 10px; }
.btn-upload-new { background-color: var(--gold); color: var(--navy-dark); border: none; padding: 8px 16px; border-radius: 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.btn-upload-new:hover { background-color: var(--gold-light); }

/* --- 8. BOOKING & DATA TABLES --- */
.booking-section { padding: 20px 20px 60px; background-color: var(--bg-light); min-height: 100vh; }
.booking-container { padding: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }

.date-navigator { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding: 15px 20px; background-color: var(--navy-dark); border-radius: var(--radius); }
.current-date { font-size: 20px; margin: 0; color: var(--gold); letter-spacing: 1px; }
.date-nav-btn { color: var(--white); padding: 8px 16px; border: 1px solid rgba(255,255,255,0.3); background: transparent; cursor: pointer; border-radius: 4px; font-size: 14px; font-weight: 600; }
.date-nav-btn:hover { background-color: var(--gold); color: var(--navy-dark); border-color: var(--gold); }

.schedule-table-wrapper { overflow-x: auto; border: 1px solid var(--border-color); border-radius: 8px; }
.schedule-table { width: 100%; border-collapse: collapse; text-align: center; min-width: 900px; }
.schedule-table th { background-color: #f8f9fa; color: var(--navy-dark); padding: 15px 10px; border: 1px solid var(--border-color); font-weight: 700; text-transform: uppercase; font-size: 13px; position: sticky; top: 0; z-index: 10; }
.schedule-table td { border: 1px solid var(--border-color); padding: 0; height: 45px; }

.time-col, .time-cell { width: 80px; font-weight: 700 !important; background-color: #f8f9fa; color: var(--navy-dark); border: 1px solid var(--border-color); }
.cell-available a { width: 100%; height: 100%; background-color: #ffffff; color: var(--success); font-size: 12px; font-weight: 600; }
.cell-available a:hover { background-color: var(--success); color: #ffffff; }
.cell-available a.selected { background-color: var(--gold) !important; color: var(--navy-dark) !important; }
.cell-booked { background-color: #f1f5f9; color: #94a3b8; font-size: 12px; font-weight: 600; cursor: not-allowed; background-image: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(0,0,0,0.02) 5px, rgba(0,0,0,0.02) 10px); }
.cell-passed { background-color: #f8fafc; color: #cbd5e1; font-size: 12px; font-weight: 500; cursor: not-allowed; border: 1px solid #e2e8f0; text-decoration: line-through; }

/* Shopping Cart */
.cart-wrapper { position: relative; display: flex; align-items: center; }
.cart-icon-btn { position: relative; cursor: pointer; background: transparent; border: none; padding: 5px; margin-right: 5px; }
.cart-icon-btn svg { width: 24px; height: 24px; stroke: var(--navy-dark); }
.cart-icon-btn:hover svg { stroke: var(--gold); }
.cart-badge { position: absolute; top: -2px; right: -5px; background-color: var(--gold); color: var(--navy-dark); font-size: 11px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.cart-dropdown { position: absolute; top: 55px; right: 0; width: 320px; background: var(--white); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); border: 1px solid var(--border-color); display: none; flex-direction: column; z-index: 9999; }
.cart-dropdown.show { display: flex; }
.cart-header { padding: 15px 20px; border-bottom: 1px solid var(--border-color); font-weight: 700; font-size: 15px; color: var(--navy-dark); }
.cart-body { max-height: 350px; overflow-y: auto; }
.cart-item { padding: 15px 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.cart-item-info { display: flex; flex-direction: column; gap: 4px; }
.cart-item-title { font-weight: 700; font-size: 14px; color: var(--navy-dark); }
.cart-item-meta { font-size: 12px; color: var(--text-muted); }
.cart-remove-btn { background: rgba(239, 68, 68, 0.1); border: none; color: var(--danger); width: 32px; height: 32px; border-radius: 6px; cursor: pointer; }
.cart-remove-btn:hover { background: var(--danger); color: white; }
.cart-footer { padding: 15px 20px; background: #f8f9fa; border-radius: 0 0 8px 8px; }

/* Data Table & Pagination */
.data-table-wrapper { overflow-x: auto; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.data-table th { background-color: var(--navy-dark); color: var(--white); padding: 12px 15px; font-weight: 600; white-space: nowrap; }
.data-table td { padding: 12px 15px; border-bottom: 1px solid var(--border-color); color: var(--text-dark); white-space: nowrap; }
.data-table tr:hover { background-color: #f8fafc; }
.table-link { color: var(--navy); font-weight: 600; }
.table-link:hover { color: var(--gold); text-decoration: underline; }

.pagination-container { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding: 10px 0; }
.pagination-info { font-size: 13px; color: var(--text-muted); }
.pagination-nav { display: flex; gap: 5px; list-style: none; }
.page-link { min-width: 35px; height: 35px; padding: 0 10px; border: 1px solid var(--border-color); border-radius: 4px; background: var(--white); color: var(--navy-dark); font-size: 13px; font-weight: 600; cursor: pointer;}
.page-link:hover, .page-item.active .page-link { background-color: var(--navy); color: var(--white); border-color: var(--navy); }
.page-link.disabled { color: #cbd5e1; pointer-events: none; background-color: #f8fafc; }

/* --- 9. MODALS & TOASTS --- */
.modal-search { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 10005; }
.modal-search-content { background: #ffffff; padding: 25px; border-radius: 8px; width: 90%; max-width: 550px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); position: relative; max-height: 90vh; overflow-y: auto; }
.modal-search-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-search-close { font-size: 24px; cursor: pointer; font-weight: bold; color: #94a3b8; line-height: 1; }
.modal-search-close:hover { color: var(--danger); }

#toast-container { position: fixed; top: 25px; right: 25px; z-index: 10600; display: flex; flex-direction: column; gap: 12px; }
.toast-alert { min-width: 250px; max-width: 350px; padding: 15px 20px; border-radius: 6px; color: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 10px 25px rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: space-between; opacity: 0; transform: translateX(100%); transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
.toast-alert.show { opacity: 1; transform: translateX(0); }
.toast-success { background-color: var(--success); border-left: 5px solid #047857; }
.toast-error { background-color: var(--danger); border-left: 5px solid #b91c1c; }
.toast-warning { background-color: var(--gold); border-left: 5px solid #b45309; }

/* Default Dashboard Mobile Menu Logic */
.mobile-dashboard-menu { display: none; }
.hide-on-mobile { display: block; }


/* --- 10. MEDIA QUERIES (CONSOLIDATED) --- */

/* Desktop & Laptop Small Adjustments */
@media (max-width: 1024px) {
    .dash-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .dash-grid-2 { grid-template-columns: 1fr; }
}

/* Tablets */
@media (max-width: 900px) {
    .about-container { flex-direction: column; gap: 40px; }
    .about-image-side { width: 100%; min-height: 300px; clip-path: none; border-radius: var(--radius); }
    .academy-grid { grid-template-columns: 1fr; gap: 30px; }
    .academy-card { border-radius: var(--radius); overflow: hidden; }
    .facilities-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile Devices */
@media (max-width: 768px) {
    /* Navbar & Header Setup */
    .header-brand span { font-size: 20px; }
    .mobile-menu-btn { display: block; }
    .nav-wrapper { position: absolute; top: var(--header-height); left: 0; width: 100%; background-color: var(--white); flex-direction: column; align-items: flex-start; padding: 0 20px; box-shadow: 0 10px 15px rgba(0,0,0,0.1); max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease; }
    .header-container.menu-open .nav-wrapper { opacity: 1; padding: 20px; max-height: 100vh; }
    .header-nav { flex-direction: column; align-items: flex-start; gap: 15px; width: 100%; padding: 0px 20px; }
    .header-actions { flex-direction: column; width: 100%; gap: 10px; margin-top: 10px; padding-top: 15px; border-top: 1px solid var(--border-color); }
    .btn-outline, .btn-solid { width: 100%; text-align: center; }

    /* Profile Header Fixes */
    .user-menu, .user-profile { width: 100%; justify-content: flex-start !important; }
    .user-profile { padding: 15px 20px !important; }
    .dropdown-menu { position: static !important; width: 100% !important; box-shadow: none !important; border: none !important; padding: 0 !important; margin-top: 5px !important; border-radius: 0 !important; background: transparent !important; display: none; }
    .user-menu:hover .dropdown-menu, .user-profile:hover .dropdown-menu, .user-menu:focus-within .dropdown-menu { display: block !important; }
    .dropdown-menu a { padding: 12px 20px 12px 65px !important; font-size: 16px !important; font-weight: 600 !important; color: var(--navy-dark) !important; border-bottom: none !important; }
    .dropdown-menu a:hover { color: var(--gold) !important; background: transparent !important; }
    .dropdown-divider { display: none !important; }

    /* Hero Section */
    .hero-title { font-size: 55px; }
    .hero-subtitle { font-size: 18px; letter-spacing: 1px; }
    .hero-desc { font-size: 14px; margin-bottom: 30px; }
    .hero-actions { flex-direction: column; width: 100%; max-width: 300px; }
    .btn-hero-solid, .btn-hero-outline { width: 100%; text-align: center; }
    .hero-section { background-image: linear-gradient(rgba(12, 26, 59, 0.85), rgba(12, 26, 59, 0.95)), url('../asset/loginBackground.webp'); }

    /* Dashboard Layout Adjustments */
    .main-content { margin-left: 0; }
    .grid-3 { grid-template-columns: 1fr; }
    .hide-on-mobile, .dash-sidebar { display: none !important; }
    .dash-main { margin-left: 0; padding: 20px !important; width: 100%; }

    /* Dashboard Mobile Menu inside Navbar */
    .mobile-dashboard-menu { display: block; width: 100%; margin-top: 15px; }
    .mobile-menu-divider { border-top: 1px solid var(--border-color); margin: 15px 0; }
    .mobile-menu-title { font-size: 11px; font-weight: 700; color: var(--text-muted); margin-bottom: 10px; letter-spacing: 1.5px; }
    .mobile-menu-list { display: flex; flex-direction: column; gap: 5px; }
    .mobile-menu-list .menu-item { color: var(--text-dark); padding: 10px 15px; border-left: none; border-radius: 6px; }
    .mobile-menu-list .menu-item svg { fill: var(--text-dark); }
    .mobile-menu-list .menu-item:hover { background-color: var(--bg-light); color: var(--navy); }
    .mobile-menu-list .menu-item:hover svg { fill: var(--navy); }
    .mobile-menu-list .menu-item.active { background-color: rgba(245, 163, 31, 0.15); color: var(--gold); background-image: none; }
    .mobile-menu-list .menu-item.active svg { fill: var(--gold); }

    /* Profile Settings Page Adjustments */
    .profile-card { flex-direction: column; padding: 25px; gap: 30px; }
    .profile-info-col { padding-right: 0; border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 30px; }
    .profile-data-row { flex-direction: column; gap: 5px; margin-bottom: 15px; }
    .profile-data-label { width: 100%; font-size: 12px; }

    /* Booking & Schedule Table Layout */
    .booking-container { padding: 15px; }
    .current-date { font-size: 16px; }
    .date-nav-btn { padding: 6px 10px; font-size: 12px; }
    .schedule-table { min-width: 100%; }
    .schedule-table th:not(.time-col) { writing-mode: vertical-rl; transform: rotate(180deg); height: 60px; padding: 10px 0; font-size: 12px; text-align: left; }
    .time-col, .time-cell { width: 45px; font-size: 11px; padding: 5px 2px; }
    .schedule-table td { height: 35px; }
    .cell-available a, .cell-booked, .cell-passed { font-size: 0; color: transparent; }
}

/* Small Mobile */
@media (max-width: 600px) {
    .facilities-grid, .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}