/**
 * LockPitch Modern Client Styling - Synchronized with Enterprise Admin Dashboard
 * Enforces: Plus Jakarta Sans typography, clean white cards, soft borders (#edf2f7),
 * active green pills (#5cb85c), subtle table styles, and pastel status badges.
 */

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

/* ==========================================================================
   GLOBAL TYPOGRAPHY ENFORCEMENT
   ========================================================================== */
html, body,
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6,
p, label, input, button, select, textarea,
.table, .table th, .table td,
.form-control, .btn, .dropdown-item, .modal-title, .badge,
.item-text, .page-title, .page-subtitle, .card-title,
.nav-link, .nav-tabs, .nav-pills {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

body {
    background-color: #f8fafc !important;
    color: #1e293b !important;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   PAGE TITLE & BREADCRUMBS
   ========================================================================== */
.page-title, h2.page-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 20px !important;
    letter-spacing: -0.025em !important;
}

.page-subtitle {
    font-size: 13.5px !important;
    color: #64748b !important;
    margin-top: -12px !important;
    margin-bottom: 24px !important;
    font-weight: 400 !important;
}

/* ==========================================================================
   CARDS & CONTAINERS (Matching screenshot: clean white, rounded 14px, #edf2f7 border)
   ========================================================================== */
.card, .card.shadow {
    background-color: #ffffff !important;
    border: 1px solid #edf2f7 !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02) !important;
    margin-bottom: 24px !important;
}

.card-body {
    padding: 24px !important;
}

.card-title, h4.card-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 0 !important;
}

/* Card Header with Icon (e.g. Funnel / Filter) */
.filter-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.filter-card-header i, .filter-card-header span {
    font-size: 18px;
    color: #0f172a;
}

/* ==========================================================================
   FORM CONTROLS & INPUTS (Height 40px, rounded 8px, #cbd5e1 border)
   ========================================================================== */
.form-control, select.form-control, .form-select,
input[type="text"], input[type="date"], input[type="email"], input[type="password"], input[type="number"] {
    background-color: #ffffff !important;
    height: 40px !important;
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 13.5px !important;
    color: #1e293b !important;
    padding: 6px 14px !important;
    transition: all 0.15s ease !important;
    box-shadow: none !important;
}

.form-control:focus, select.form-control:focus, .form-select:focus,
input[type="text"]:focus, input[type="date"]:focus, input[type="email"]:focus {
    background-color: #ffffff !important;
    border-color: #1a73e8 !important;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12) !important;
    outline: none !important;
}

.form-control::placeholder, input::placeholder {
    color: #94a3b8 !important;
    font-size: 13.5px !important;
}

label, .form-label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    margin-bottom: 4px !important;
}

/* Form section headings */
.form-section-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 16px 0 8px 0 !important;
}

/* ==========================================================================
   SEARCH BAR
   ========================================================================== */
.hero-search-wrapper {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    border: none !important;
    margin: 20px auto 0 auto !important;
    max-width: 980px !important;
    position: relative !important;
    z-index: 10 !important;
}

.hero-search-inner {
    background: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
    display: flex !important;
    align-items: center !important;
    padding: 6px 8px 6px 16px !important;
    overflow: visible !important;
    transition: all 0.2s ease !important;
}

.hero-search-inner:focus-within {
    border-color: #16a34a !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15) !important;
}

/* Search Segments */
.hero-search-segment {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
}

.hero-search-segment.sport-segment {
    min-width: 150px !important;
    flex-shrink: 0 !important;
}

.hero-search-segment.keyword-segment {
    flex: 1 1 0% !important;
}

.hero-search-segment.area-segment {
    width: 220px !important;
    flex-shrink: 0 !important;
}

/* Segment Icons */
.hero-search-segment i {
    font-size: 15px !important;
    color: #16a34a !important;
    flex-shrink: 0 !important;
}

/* Select element */
.hero-search-sport {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    height: 40px !important;
    padding: 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: none !important;
    width: 100% !important;
}

.hero-search-sport:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Vertical Dividers */
.hero-search-divider {
    width: 1px !important;
    height: 24px !important;
    background-color: #e2e8f0 !important;
    margin: 0 12px !important;
    flex-shrink: 0 !important;
}

/* Input Fields inside hero search */
.hero-search-inner input[type="text"],
.hero-search-inner input,
.hero-search-input,
.hero-search-area {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    height: 40px !important;
    padding: 0 !important;
    font-size: 14px !important;
    color: #0f172a !important;
    font-weight: 400 !important;
    outline: none !important;
    box-shadow: none !important;
    width: 100% !important;
}

.hero-search-inner input[type="text"]:focus,
.hero-search-inner input:focus,
.hero-search-input:focus,
.hero-search-area:focus {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.hero-search-inner input::placeholder,
.hero-search-input::placeholder,
.hero-search-area::placeholder {
    color: #94a3b8 !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
}

/* Search Submit Button */
.hero-search-btn {
    border-radius: 8px !important;
    background: #16a34a !important;
    color: #ffffff !important;
    padding: 10px 22px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    box-shadow: none !important;
    transition: all 0.15s ease !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    height: 40px !important;
}

.hero-search-btn:hover {
    background: #15803d !important;
    color: #ffffff !important;
}

.hero-search-btn:active {
    background: #166534 !important;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-search-inner {
        flex-direction: column !important;
        border-radius: 12px !important;
        padding: 14px !important;
        gap: 10px !important;
    }
    .hero-search-divider {
        width: 100% !important;
        height: 1px !important;
        margin: 0 !important;
    }
    .hero-search-segment.sport-segment,
    .hero-search-segment.keyword-segment,
    .hero-search-segment.area-segment,
    .hero-search-btn {
        width: 100% !important;
    }
}

/* ==========================================================================
   TABS & PILLS (Exact match to screenshot: Green active button pill)
   ========================================================================== */
.nav-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    border-bottom: none !important;
    padding: 4px 0 !important;
    margin-bottom: 18px !important;
}

.nav-pills .nav-link {
    background-color: transparent !important;
    color: #1a73e8 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 8px 18px !important;
    border-radius: 8px !important;
    transition: all 0.15s ease !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
}

.nav-pills .nav-link:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

/* ACTIVE PILL (Bright Green, Rounded 8px - Exact match to "Tất cả" in screenshot) */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link,
.btn-pill-green.active {
    background-color: #5cb85c !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(92, 184, 92, 0.3) !important;
}

/* ==========================================================================
   TABLES (Clean, Modern Flat Style matching screenshot)
   ========================================================================== */
.table-responsive {
    border-radius: 14px !important;
    border: 1px solid #edf2f7 !important;
    background-color: #ffffff !important;
    overflow: hidden !important;
}

.table {
    width: 100% !important;
    margin-bottom: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    color: #1e293b !important;
}

.table thead,
.table thead tr,
.table thead th {
    background-color: #f8fafc !important;
    background: #f8fafc !important;
    color: #475569 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    border-top: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-left: none !important;
    border-right: none !important;
    padding: 13px 16px !important;
    vertical-align: middle !important;
    letter-spacing: 0.01em !important;
    text-align: left;
}

.table tbody td,
.table tbody th {
    font-size: 13.5px !important;
    color: #1e293b !important;
    padding: 13px 16px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    vertical-align: middle !important;
}

.table tbody tr:last-child td {
    border-bottom: none !important;
}

.table tbody tr:hover td {
    background-color: #f8fafc !important;
}

/* ==========================================================================
   STATUS BADGES & PILLS (Exact match to screenshot)
   ========================================================================== */
/* Green Badge: Hoàn thành / Đã thanh toán */
.custom-4, .badge-status-success {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    border-radius: 9999px !important;
    color: #15803d !important;
    background-color: #dcfce7 !important;
    border: 1px solid #bbf7d0 !important;
    white-space: nowrap !important;
}

/* Blue Badge: Tại quầy / Chờ nhận sân */
.custom-1, .badge-status-info {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    border-radius: 9999px !important;
    color: #0284c7 !important;
    background-color: #e0f2fe !important;
    border: 1px solid #bae6fd !important;
    white-space: nowrap !important;
}

/* Red Badge: Đã hủy */
.custom-3, .badge-status-danger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    border-radius: 9999px !important;
    color: #b91c1c !important;
    background-color: #fee2e2 !important;
    border: 1px solid #fecaca !important;
    white-space: nowrap !important;
}

/* Amber/Orange Badge: Chờ thanh toán */
.custom-5, .badge-status-warning {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    border-radius: 9999px !important;
    color: #b45309 !important;
    background-color: #fef3c7 !important;
    border: 1px solid #fde68a !important;
    white-space: nowrap !important;
}

/* Action Icon Button (Circular outline button with eye icon) */
.btn-action-circle {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    border: 1px solid #e2e8f0 !important;
    background-color: #ffffff !important;
    color: #64748b !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    text-decoration: none !important;
}

.btn-action-circle:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

/* Reset Button (Square Blue with Refresh Icon) */
.btn-refresh-blue {
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
    background-color: #1a73e8 !important;
    border: 1px solid #1a73e8 !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.btn-refresh-blue:hover {
    background-color: #1557b0 !important;
    border-color: #1557b0 !important;
    transform: translateY(-1px);
}

/* ==========================================================================
   BRAND IDENTITY & LOGO
   ========================================================================== */
.brand-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-weight: 700 !important;
    font-size: 19px !important;
    letter-spacing: -0.02em !important;
    text-decoration: none !important;
}

.brand-icon-box {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    background: #16a34a !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 17px !important;
    box-shadow: none !important;
    flex-shrink: 0 !important;
}

.brand-text-accent {
    color: #16a34a !important;
}

/* ==========================================================================
   NAVBAR TOPBAR (Matches Screenshot: Clean White, Subtle Border)
   ========================================================================== */
.site-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #edf2f7 !important;
    box-shadow: none !important;
    padding: 0 24px !important;
}

.site-header .navbar-brand {
    font-weight: 700 !important;
    font-size: 18px !important;
    color: #0f172a !important;
}

/* ==========================================================================
   SITE FOOTER (Clean Light)
   ========================================================================== */
#footer {
    background: #ffffff !important;
    color: #64748b !important;
    border-top: 1px solid #e2e8f0 !important;
}

#footer a {
    color: #64748b !important;
    transition: color 0.15s ease !important;
}

#footer a:hover {
    color: #16a34a !important;
}

/* ==========================================================================
   MODERN EMERALD DUAL RANGE PRICE SLIDER
   ========================================================================== */
.price-slider-container {
    padding: 6px 0 !important;
}

.price-slider-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 10px !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

.price-slider-value {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #059669 !important;
    background: #ecfdf5 !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    border: 1px solid #a7f3d0 !important;
    letter-spacing: -0.01em !important;
}

.dual-slider-wrap {
    position: relative !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    margin: 8px 0 !important;
}

.dual-slider-track {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    height: 6px !important;
    background: #e2e8f0 !important;
    border-radius: 9999px !important;
    z-index: 1 !important;
}

.dual-slider-fill {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    height: 6px !important;
    background: #10b981 !important;
    border-radius: 9999px !important;
    z-index: 2 !important;
    left: 0%;
    right: 0%;
}

.dual-range-input {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    left: 0 !important;
    width: 100% !important;
    height: 28px !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    pointer-events: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 3 !important;
}

.dual-range-input::-webkit-slider-runnable-track {
    background: transparent !important;
    border: none !important;
    height: 100% !important;
}

.dual-range-input::-moz-range-track {
    background: transparent !important;
    border: none !important;
    height: 100% !important;
}

.dual-range-input::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    pointer-events: auto !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    background: #10b981 !important;
    border: 3px solid #ffffff !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.45) !important;
    cursor: pointer !important;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease !important;
    margin-top: 4px !important;
}

.dual-range-input::-moz-range-thumb {
    pointer-events: auto !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    background: #10b981 !important;
    border: 3px solid #ffffff !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.45) !important;
    cursor: pointer !important;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease !important;
}

.dual-range-input::-webkit-slider-thumb:hover,
.dual-range-input::-webkit-slider-thumb:active {
    transform: scale(1.25) !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.6) !important;
    background: #059669 !important;
}

.dual-range-input::-moz-range-thumb:hover,
.dual-range-input::-moz-range-thumb:active {
    transform: scale(1.25) !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.6) !important;
    background: #059669 !important;
}

.price-slider-bounds {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 11.5px !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
    margin-top: 4px !important;
}

.preset-price-btn {
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    padding: 3px 9px !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    user-select: none !important;
}

.preset-price-btn:hover {
    border-color: #10b981 !important;
    color: #059669 !important;
    background: #ecfdf5 !important;
}

.preset-price-btn.active {
    border-color: #10b981 !important;
    background: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3) !important;
}

.btn-lp-primary {
    background-color: #16a34a !important;
    border: 1px solid #16a34a !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.15s ease !important;
}

.btn-lp-primary:hover {
    background-color: #15803d !important;
    border-color: #15803d !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.user-greeting-badge {
    background: #ecfdf5;
    color: #065f46;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13.5px;
    font-weight: 500;
    border: 1px solid #a7f3d0;
    display: inline-flex;
    align-items: center;
}


