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

/* ── PRESET POLISHED VARIABLES ── */
:root {
    --purple: #6c5ce7;
    --purple-l: #8b7ff5;
    --purple-dk: #4834d4;
    --purple-bg: #f5f3ff;
    --purple-br: #e0dcff;
    --orange: #f4621f;
    --orange-l: #fff4ee;
    --orange-m: #fddccc;
    --green: #10b981;
    --green-l: #ecfdf5;
    --red: #ef4444;
    --red-l: #fef2f2;
    --blue: #3b82f6;
    --blue-l: #eff6ff;
    --amber: #f59e0b;
    --amber-l: #fef3c7;
    --grey: #64748b;
    --grey-l: #f8fafc;
    --border: #e2e8f0;
    --border2: #cbd5e1;
    --text: #0f172a;
    --text2: #475569;
    --text3: #94a3b8;
    --shadow-s:
        0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-m:
        0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg:
        0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
}

/* Global Scope Typography */
.content-body {
    font-family: "Plus Jakarta Sans", sans-serif !important;
    background-color: #f1f4f9 !important;
}

/* ── STATS STRIP CARD SYSTEM ── */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--border);
    padding: 18px;
    box-shadow: var(--shadow-s);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

.stat-ic {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.stat-v {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-l {
    font-size: 11px;
    color: var(--text3);
    font-weight: 600;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── FILTER & CONTROL BAR ── */
.filter-bar {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap; /* Force all filters on one line */
    box-shadow: var(--shadow-s);
    width: 100%;
}
/* ── RESPONSIVE GRID LAYOUTS ── */
.row2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.row3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .row2,
    .row3 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ── PAGE TITLES (MOCKUP STYLES) ── */
.page-title {
    font-size: 21px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
}

.page-sub {
    font-size: 12px;
    color: var(--text3);
    margin-top: 3px;
}

/* ── FORM FIELD BASE STYLES ── */
/* fi / fi2 apply to ALL field types: input, select, textarea */
.fi,
.fi2 {
    border: 1.5px solid var(--border) !important;
    border-radius: 10px !important;
    padding: 0 14px !important;
    height: 42px !important;
    box-sizing: border-box !important;
    font-size: 13px !important;
    color: var(--text) !important;
    background: #ffffff !important;
    transition: all 0.15s ease-in-out !important;
    outline: none !important;
    font-weight: 500 !important;
    width: 100% !important;
    display: block !important;
    box-shadow: var(--shadow-s) !important;
}

textarea.fi,
textarea.fi2 {
    padding: 10px 14px !important;
    height: auto !important;
    min-height: 90px !important;
    resize: vertical !important;
    line-height: 1.6 !important;
}

input[type="file"].fi,
input[type="file"].fi2 {
    padding: 9px 14px !important;
    height: auto !important;
    cursor: pointer;
}

.fi::placeholder,
.fi2::placeholder {
    color: var(--text3) !important;
    font-weight: 400 !important;
}

.fi:focus,
.fi2:focus {
    border-color: var(--purple) !important;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15) !important;
}

/* Search field icon */
.fi-search {
    flex: 1 !important;
    min-width: 200px;
    padding-left: 38px !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: left 14px center !important;
    background-size: 16px !important;
}

/* Select chevron arrow */
select.fi,
select.fi2,
.swal2-popup select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    padding-right: 32px !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px !important;
    cursor: pointer !important;
}

.seg {
    height: 42px;
    box-sizing: border-box;
    padding: 0 16px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: #ffffff;
    color: var(--text2);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.15s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap !important; /* Prevent text wrapping */
    flex-shrink: 0 !important; /* Prevent button compression */
}

.seg:hover {
    background: var(--grey-l);
    border-color: var(--border2);
}

.seg.on {
    border-color: var(--purple);
    background: var(--purple-bg);
    color: var(--purple-dk);
}

#gc-f-date-btns,
#sgpt-f-date-btns {
    display: flex !important;
    gap: 5px !important;
    flex-shrink: 0 !important; /* Prevent selector container compression */
}

/* ── SELECT2 OVERRIDES FOR HIGH-FIDELITY DESIGN ── */
/* Strip select2 container borders completely */
.select2-container:not(.select2-container--open) {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Force full width inside modals so background-image arrow is always at the right edge */
.modal-box .select2-container,
.modal-box .select2-container--default {
    width: 100% !important;
    display: block !important;
}

/* Force original hidden select box to be hidden */
select.select2-hidden-accessible {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Style only the inner select2 selection box */
.select2-container--default .select2-selection--single {
    height: 42px !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px !important;
    padding-right: 32px !important;
    box-shadow: var(--shadow-s) !important;
    transition: all 0.15s ease-in-out !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--purple) !important;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15) !important;
    outline: none !important;
    border-radius: 10px !important;
}

.select2-dropdown--below,
.select2-dropdown--above {
    border-radius: 10px !important;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    color: var(--text) !important;
    font-size: 13px !important;
    font-weight: 600 !important; /* Match inputs */
    padding-left: 14px !important;
    padding-right: 0 !important;
    line-height: 40px !important;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    display: none !important; /* Hide original arrow */
}

/* Select2 full width inside form sections */
.form-section .select2-container {
    width: 100% !important;
}

/* ── SELECT2 DROPDOWN PANEL ── */
.select2-dropdown {
    background-color: #ffffff !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    margin-top: 4px !important;
    z-index: 99999 !important;
}

.select2-container--default .select2-results__option {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--text) !important;
    padding: 9px 14px !important;
    transition: all 0.12s ease !important;
}

.select2-container--default
    .select2-results__option--highlighted[aria-selected] {
    background: var(--purple-bg, #f0edff) !important;
    color: var(--purple, #6c5ce7) !important;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background: var(--purple, #6c5ce7) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1.5px solid var(--border) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    outline: none !important;
}

.select2-container--default
    .select2-search--dropdown
    .select2-search__field:focus {
    border-color: var(--purple, #6c5ce7) !important;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15) !important;
}

/* Style select2 containers inside the filter-bar (Clubs, Categories, Statuses) */
.filter-bar .select2-container {
    width: 150px !important;
    min-width: 150px !important;
    flex-shrink: 0 !important;
}

/* ── BOOTSTRAP-SELECT (SELECTPICKER) OVERRIDES ── */
/* When selectpicker wraps a .fi/.fi2 select, it copies the class to the div wrapper.
   We must remove the border/padding from the wrapper and apply it to the inner button. */
div.bootstrap-select.fi,
div.bootstrap-select.fi2 {
    border: none !important;
    padding: 0 !important;
    height: auto !important;
    box-shadow: none !important;
    background: transparent !important;
    width: 100% !important;
}

div.bootstrap-select.fi .dropdown-toggle,
div.bootstrap-select.fi2 .dropdown-toggle {
    border: 1.5px solid var(--border) !important;
    border-radius: 10px !important;
    padding: 0 14px !important;
    height: 42px !important;
    background: #ffffff !important;
    color: var(--text) !important;
    box-shadow: var(--shadow-s) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    outline: none !important;
}

div.bootstrap-select.fi .filter-option,
div.bootstrap-select.fi2 .filter-option {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

/* Hide the native select that was forced visible by .fi/.fi2 display:block!important */
div.bootstrap-select select.fi,
div.bootstrap-select select.fi2 {
    display: none !important;
}

div.bootstrap-select.fi .dropdown-toggle:focus,
div.bootstrap-select.fi2 .dropdown-toggle:focus {
    border-color: var(--purple) !important;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15) !important;
}

/* Custom dropdown chevron for bootstrap-select to match our premium look */
div.bootstrap-select.fi .dropdown-toggle::after,
div.bootstrap-select.fi2 .dropdown-toggle::after {
    content: "" !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    border: none !important;
    margin-left: auto !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
}

/* ── TABLE SYSTEM (NO VERTICAL BORDERS) ── */
.tbl-wrap {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-m);
}

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

.table-common th {
    padding: 16px 20px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--text2);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 2.5px solid #f1f5f9;
    background: #fafbfc;
    border-left: none !important;
    border-right: none !important;
}

.table-common td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9 !important;
    border-left: none !important;
    border-right: none !important;
    font-size: 13px;
    color: var(--text);
    transition: background 0.15s ease;
    text-align: left !important;
    vertical-align: middle !important;
}

.table-common tbody tr:hover td {
    background: #fafbfc;
}

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

/* ── PILL BADGES ── */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.pill-green {
    background: var(--green-l);
    color: var(--green);
    border: 1px solid #d1fae5;
}
.pill-orange {
    background: var(--orange-l);
    color: var(--orange);
    border: 1px solid #ffe4e6;
}
.pill-red {
    background: var(--red-l);
    color: var(--red);
    border: 1px solid #fee2e2;
}
.pill-purple {
    background: var(--purple-bg);
    color: var(--purple-dk);
    border: 1px solid var(--purple-br);
}
.pill-grey {
    background: #f1f5f9;
    color: var(--grey);
    border: 1px solid #e2e8f0;
}
.pill-blue {
    background: var(--blue-l);
    color: var(--blue);
    border: 1px solid #dbeafe;
}

/* ── STUNNING GLASS HERO BANNER ── */
.profile-hero {
    background: linear-gradient(
        135deg,
        #1e1b4b 0%,
        #31105f 50%,
        #4c1d95 100%
    ) !important;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(76, 29, 149, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-hero::after {
    content: "";
    position: absolute;
    top: -20px;
    right: -20px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(108, 92, 231, 0.3) 0%,
        rgba(108, 92, 231, 0) 70%
    );
    pointer-events: none;
}

.hero-name {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
}

.hbadge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(2px);
}

/* ── PREMIUM BUTTONS ── */
.btn-primary {
    background: linear-gradient(
        135deg,
        var(--purple) 0%,
        #5340e6 100%
    ) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 10px 22px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.25) !important;
    transition: all 0.2s ease !important;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(108, 92, 231, 0.35) !important;
    filter: brightness(1.05);
}

.btn-outline {
    background: #ffffff !important;
    border: 1.5px solid var(--border) !important;
    color: var(--text2) !important;
    font-weight: 600 !important;
    padding: 9px 20px !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
    box-shadow: var(--shadow-s);
}

.btn-outline:hover {
    border-color: var(--purple) !important;
    color: var(--purple) !important;
    background: var(--purple-bg) !important;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent !important;
    color: var(--text2) !important;
    border: none !important;
    padding: 8px 14px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.15s ease !important;
}

.btn-ghost:hover {
    background: var(--grey-l) !important;
    color: var(--text) !important;
}

.btn-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 600 !important;
    padding: 10px 22px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25) !important;
    transition: all 0.2s ease !important;
}

.btn-green:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35) !important;
}

/* ── INPUT FIELDS FORM DESIGN ── */
.fg {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fl {
    font-size: 11px;
    font-weight: 700;
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── MODALS (GLASSBACKDROP) ── */
.modal-ov {
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-start !important;
    justify-content: center;
    z-index: 9999;
    padding: 40px 20px;
    overflow-y: auto;
}

.modal-box {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow:
        0 25px 60px -12px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(108, 92, 231, 0.06);
    width: 100%;
    max-width: 600px;
    animation: modalSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.modal-box.wide {
    max-width: 740px;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(16px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mhd {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafbfc;
}

.mbody {
    padding: 24px;
}

.mfoot {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: #fafbfc;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

/* ── OTP BOXES ── */
.otp-digit-box {
    width: 46px;
    height: 52px;
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
    transition: all 0.15s ease;
    box-shadow: var(--shadow-s);
}

.otp-digit-box:focus {
    border-color: var(--purple) !important;
    box-shadow: 0 0 0 3.5px rgba(108, 92, 231, 0.18) !important;
}

/* ── CARD COMPONENT SYSTEM ── */
.card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-m);
    overflow: hidden;
    margin-bottom: 20px;
}

.card-hd {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: #fafbfc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 0;
}

.pay-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.pay-row:last-child {
    border-bottom: none;
}

.btn-danger {
    background: linear-gradient(135deg, var(--red) 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 600 !important;
    padding: 10px 22px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25) !important;
    transition: all 0.2s ease !important;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35) !important;
}

.btn-danger.btn-sm {
    padding: 6px 14px !important;
    border-radius: 8px !important;
}

/* ── MODAL OVERLAYS & CONTAINER STYLES ── */
.modal-ov {
    position: fixed;
    inset: 0;
    background: rgba(15, 10, 40, 0.45);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 36px 20px;
    overflow-y: auto;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}
.modal-box {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 24px 80px rgba(108, 92, 231, 0.18);
    animation: modalSlideUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-box.wide {
    max-width: 740px;
}
.mhd {
    padding: 24px 28px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.m-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}
.m-sub {
    font-size: 12px;
    color: var(--text3);
    margin-top: 4px;
}
.mbody {
    padding: 20px 28px;
}
.mfoot {
    padding: 0 28px 24px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.close-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text3);
    cursor: pointer;
    padding: 4px;
    transition: color 0.15s ease;
}
.close-btn:hover {
    color: var(--text2);
}

/* ── FORM DIVIDER & ADDITIONAL COMPONENTS ── */
.form-divider {
    margin: 20px 0 12px;
    font-size: 11px;
    font-weight: 800;
    color: var(--purple);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1.5px solid var(--purple-bg);
    padding-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tog-wrap {
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.14s;
}
.tog-wrap.on {
    border-color: var(--purple);
    background: var(--purple-bg);
}
.tog {
    width: 36px;
    height: 19px;
    border-radius: 9px;
    background: var(--border);
    position: relative;
    transition: background 0.14s;
    flex-shrink: 0;
}
.tog.on {
    background: var(--purple);
}
.tog::after {
    content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    top: 2px;
    left: 2px;
    transition: left 0.14s;
}
.tog.on::after {
    left: 19px;
}

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

.hidden {
    display: none !important;
}

/* ── PREMIUM INPUT, SELECT, DATE & TIME STYLES ── */
.fi2 {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 13px;
    font-family: inherit;
    color: var(--text, #2d3748);
    background-color: var(--card-bg, #ffffff);
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 10px;
    transition: all 0.2s ease-in-out;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Custom select arrow styling */
select.fi2 {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23718096' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 18px;
    padding-right: 36px;
    cursor: pointer;
}

/* Focus states */
.fi2:focus {
    border-color: var(--purple, #a855f7);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
    background-color: #fff;
}

/* Styling date and time inputs */
input[type="date"].fi2,
input[type="time"].fi2 {
    position: relative !important;
    cursor: pointer !important;
    background-position: right 12px center !important;
    background-repeat: no-repeat !important;
    background-size: 16px !important;
    padding-right: 36px !important;
}

input[type="date"].fi2 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23718096' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3E%3C/svg%3E") !important;
}

input[type="time"].fi2 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23718096' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5a.5.5 0 0 0-1 0V9a.5.5 0 0 0 .252.434l3.5 2a.5.5 0 0 0 .496-.868L8 8.71V3.5z'/%3E%3Cpath d='M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm7-8A7 7 0 1 1 1 8a7 7 0 0 1 14 0z'/%3E%3C/svg%3E") !important;
}

/* Webkit indicators overlay */
.fi2::-webkit-calendar-picker-indicator {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: auto !important;
    height: auto !important;
    color: transparent !important;
    background: transparent !important;
    cursor: pointer !important;
}

textarea.fi2 {
    resize: vertical;
    min-height: 80px;
}

/* ══════════════════════════════════════════════
   SESSION OVERRIDES — restored after git revert
   ══════════════════════════════════════════════ */

/* ── FILTER BAR ── */
.filter-bar {
    padding: 8px 14px !important;
    margin-bottom: 12px !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
}
.filter-bar .fi-search {
    flex: 2 1 160px !important;
    height: 30px !important;
    font-size: 11px !important;
    padding: 0 10px 0 30px !important;
    background-position: left 9px center !important;
    background-size: 13px !important;
    width: auto !important;
}
.filter-bar .filter-input {
    flex: 0 0 132px !important;
    width: 132px !important;
    height: 30px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #1a1d23 !important;
    background-color: #fff !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    display: inline-block !important;
    box-shadow: none !important;
}
.seg {
    height: 30px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
}

/* ── TABLE IMPROVEMENTS ── */
.table-common {
    min-width: 800px;
}
.table-common th {
    padding: 10px 14px !important;
    font-size: 10px !important;
}
.table-common td {
    padding: 10px 14px !important;
    font-size: 12px !important;
    text-align: left !important;
    vertical-align: middle !important;
}
.pill {
    padding: 2px 8px !important;
    font-size: 10px !important;
    gap: 4px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 600 !important;
}
.pill::before {
    width: 5px !important;
    height: 5px !important;
}
.pill-orange {
    background: var(--amber-l) !important;
    color: var(--amber) !important;
    border: 1px solid #fde68a !important;
}
/* SGPT-specific status pill colours */
.pill-green {
    background: #d1fae5 !important;
    color: #065f46 !important;
    border-color: #6ee7b7 !important;
}
.pill-blue {
    background: #dbeafe !important;
    color: #1e40af !important;
    border-color: #93c5fd !important;
}
.pill-grey {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border-color: #cbd5e1 !important;
}
.pill-red {
    background: #fee2e2 !important;
    color: #b91c1c !important;
    border-color: #fca5a5 !important;
}
.pill-purple {
    background: var(--purple-bg) !important;
    color: var(--purple-dk) !important;
    border-color: var(--purple-br) !important;
}

/* ── ICON ACTION BUTTONS ── */
.icon-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text2);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}
.icon-action-btn:hover {
    border-color: var(--purple);
    color: var(--purple);
    background: var(--purple-bg);
}
.icon-action-btn.icon-manage {
    border-color: var(--purple-br);
    color: var(--purple);
    background: var(--purple-bg);
}
.icon-action-btn.icon-manage:hover {
    background: var(--purple);
    color: #fff;
}
.icon-action-btn.icon-edit:hover {
    border-color: var(--amber);
    color: var(--amber);
    background: var(--amber-l);
}
.icon-action-btn.icon-view:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--blue-l);
}

/* ── ACTION BAR BUTTON VARIANTS (with hover) ── */
.btn-act-primary {
    padding: 6px 13px !important;
    font-size: 11px !important;
}
.btn-act-purple {
    color: var(--purple);
    border: 1.5px solid var(--purple-br);
    background: var(--purple-bg);
    transition: all 0.15s ease;
    padding: 6px 13px !important;
    font-size: 11px !important;
}
.btn-act-purple:hover {
    background: var(--purple);
    color: #fff;
    border-color: var(--purple);
}
.btn-act-green {
    color: var(--green);
    border: 1.5px solid #a9dfbf;
    background: #fff;
    transition: all 0.15s ease;
    padding: 6px 13px !important;
    font-size: 11px !important;
}
.btn-act-green:hover {
    background: var(--green-l);
    border-color: var(--green);
}

.btn-act-amber {
    color: var(--amber);
    border: 1.5px solid #fde68a;
    background: #fff;
    transition: all 0.15s ease;
    padding: 6px 13px !important;
    font-size: 11px !important;
}
.btn-act-amber:hover {
    background: var(--amber-l);
    border-color: var(--amber);
}

.btn-act-red {
    color: var(--red);
    border: 1.5px solid #fee2e2;
    background: #fff;
    transition: all 0.15s ease;
    padding: 6px 13px !important;
    font-size: 11px !important;
}
.btn-act-red:hover {
    background: var(--red-l);
    border-color: var(--red);
}

.btn-act-neutral {
    color: var(--text2);
    border: 1.5px solid var(--border);
    background: #fff;
    transition: all 0.15s ease;
    padding: 6px 13px !important;
    font-size: 11px !important;
}
.btn-act-neutral:hover {
    border-color: var(--purple);
    color: var(--purple);
    background: var(--purple-bg);
}

.btn-act-success {
    background: var(--green-l);
    color: #0d7a4e;
    border: 1.5px solid #a9dfbf;
    transition: all 0.15s ease;
    padding: 6px 13px !important;
    font-size: 11px !important;
}
.btn-act-success:hover {
    background: #a9dfbf;
    border-color: #6fcf97;
}

/* ── SHOW PAGE (MANAGE) ── */
.gc-mini-stat {
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 12px 16px;
    box-shadow: var(--shadow-s);
    display: flex;
    flex-direction: column;
}
.gc-mini-stat .ic {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    margin-bottom: 8px;
}
.roster-row {
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
}
.roster-row:last-child {
    border-bottom: none;
}
.member-av {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--purple-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    color: var(--purple-dk);
    flex-shrink: 0;
}
.wl-pos {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--amber-l);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    color: var(--amber);
}
.action-bar {
    display: flex;
    gap: 9px;
    margin-bottom: 18px;
    flex-wrap: nowrap;
    align-items: center;
}
.action-bar .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* ── MISC FIXES ── */
#main-wrapper {
    transition: none !important;
}
.stats-strip {
    gap: 12px;
    margin-bottom: 14px;
}
.stat {
    padding: 12px 14px;
}

/* ── SELECT2 FOCUS ── */
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--purple) !important;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15) !important;
    outline: none !important;
}

/* ── MODAL FOOT ALIGNMENT ── */
.mfoot {
    padding: 16px 28px;
    border-top: 1px solid var(--border);
    background: #fafbfc;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}

/* ── ROW ACTION BUTTONS TEXT CENTERING ── */
.card .btn.btn-ghost.btn-sm {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

/* ── PAGE LAYOUT TIGHTENING ── */
.content-body .container-fluid {
    padding-top: 6px !important;
}
.content-body
    .container-fluid
    > .d-flex.justify-content-between.align-items-center {
    margin-bottom: 12px !important;
}

/* ── FI-SEARCH IN FILTER BAR ── */
.filter-bar .fi-search {
    flex: 2 1 160px !important;
    width: auto !important;
    min-width: 160px;
    height: 30px !important;
    font-size: 11px !important;
    padding: 0 10px 0 30px !important;
    background-position: left 9px center !important;
    background-size: 13px !important;
}

/* ── TABLE WRAP ── */
.tbl-wrap {
    overflow-x: auto;
}

/* ── FILTER-INPUT HEIGHT FIX — match fi-search height ── */
.filter-bar .filter-input {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    padding-right: 24px !important;
}

/* ── FILTER-INPUT HEIGHT FIX v2 — all !important ── */
.filter-bar .filter-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 12px !important;
    padding-right: 24px !important;
}

/* ── FILTER SELECTS: height matches fi-search (IDs added for targeting) ── */
#gc-f-club,
#gc-f-category,
#gc-f-status,
#sgpt-f-club,
#sgpt-f-status {
    height: 30px !important;
    font-size: 11px !important;
    padding: 0 10px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    color: #1a1d23 !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    flex: 0 0 132px !important;
    width: 132px !important;
    display: inline-block !important;
}
#gc-f-club:focus,
#gc-f-category:focus,
#gc-f-status:focus,
#sgpt-f-club:focus,
#sgpt-f-status:focus {
    outline: none !important;
    border-color: var(--purple) !important;
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.12) !important;
}
