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

:root {
    --turf-primary: #059669;
    --turf-primary-hover: #047857;
    --turf-emerald: #10b981;
    --turf-neon: #00e676;
    --turf-lime: #84cc16;
    --turf-dark: #064e3b;
    --turf-surface: #f0fdf4;
    --turf-surface-border: #bbf7d0;

    --stadium-bg: #f3f7f5;
    --stadium-dark: #09101d;
    --stadium-card-dark: #0f192c;
    --stadium-border-dark: #1e2c47;

    --trophy-gold: #f59e0b;
    --trophy-gold-hover: #d97706;
    --trophy-surface: #fef3c7;

    --cricket-red: #ef4444;
    --cricket-red-hover: #dc2626;

    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-sports: 'Barlow Condensed', 'Plus Jakarta Sans', sans-serif;
}

/* Fallback for Font Awesome Free where fa-cricket-bat-ball is a Pro-only icon */
.fa-cricket-bat-ball:before {
    content: "\f432" !important;
}

/* 1. Global Sports Typography & Body */
body {
    font-family: var(--font-main);
    background-color: var(--stadium-bg);
    color: #1e293b;
    letter-spacing: -0.01em;
}

.font-sports {
    font-family: var(--font-sports);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* 2. Athletic & Stadium Cards */
.stadium-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.stadium-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.02);
}

.stadium-hero-card {
    background: linear-gradient(135deg, #091726 0%, #0d2818 50%, #063d27 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
    box-shadow: 0 20px 25px -5px rgba(6, 78, 59, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

/* 3. Sporty Glowing Badges & Indicators */
.badge-turf {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    font-weight: 700;
    border-radius: 9999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-live {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 9999px;
    padding: 0.15rem 0.6rem;
    font-size: 0.7rem;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-live::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 50%;
    animation: livePulse 1.2s infinite;
}

@keyframes livePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.4; }
}

.badge-trophy {
    background-color: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
    font-weight: 700;
    border-radius: 9999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.75rem;
}

/* 4. Sporty Buttons */
.btn-turf-primary {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff !important;
    font-weight: 700;
    border-radius: 0.75rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.15s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-turf-primary:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.4);
    transform: translateY(-1px);
}

.btn-turf-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

/* 5. Custom Toastr Notifications Styling (Sports Theme) */
#toast-container > div {
    opacity: 1 !important;
    border-radius: 1rem !important;
    box-shadow: 0 16px 32px -4px rgba(0, 0, 0, 0.16), 0 6px 12px -2px rgba(0, 0, 0, 0.08) !important;
    font-family: var(--font-main) !important;
    font-size: 0.8125rem !important;
    padding: 16px 16px 16px 52px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

#toast-container > .toast-success {
    background-color: #059669 !important;
    background: linear-gradient(135deg, #064e3b 0%, #059669 100%) !important;
}

#toast-container > .toast-error {
    background-color: #dc2626 !important;
    background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%) !important;
}

#toast-container > .toast-warning {
    background-color: #d97706 !important;
    background: linear-gradient(135deg, #92400e 0%, #d97706 100%) !important;
}

#toast-container > .toast-info {
    background-color: #0d9488 !important;
    background: linear-gradient(135deg, #115e59 0%, #0d9488 100%) !important;
}

#toast-container .toast-close-button {
    font-size: 1.1rem !important;
    text-shadow: none !important;
    opacity: 0.8 !important;
    color: #ffffff !important;
}

#toast-container .toast-close-button:hover {
    opacity: 1 !important;
}

#toast-container .toast-progress {
    opacity: 0.4 !important;
    background-color: #ffffff !important;
}

/* 6. Yajra DataTables Global Sports Theme */
.dataTables_wrapper {
    font-size: 0.875rem;
    color: #334155;
    padding: 1rem;
    width: 100% !important;
    overflow: visible !important;
}

.dataTables_wrapper > div, .dataTables_wrapper table {
    overflow: visible !important;
}

table.dataTable {
    width: 100% !important;
    margin: 0 auto;
    clear: both;
    border-collapse: collapse !important;
}

.dataTables_wrapper .dataTables_length {
    margin-bottom: 0.75rem;
}

.dataTables_wrapper .dataTables_length select {
    padding: 0.4rem 2rem 0.4rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.625rem;
    font-size: 0.8125rem;
    outline: none;
    background-color: #ffffff;
    color: #334155;
    cursor: pointer;
    font-weight: 500;
}

.dataTables_wrapper .dataTables_length select:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.dataTables_wrapper .dataTables_filter {
    margin-bottom: 0.75rem;
}

.dataTables_wrapper .dataTables_filter input {
    padding: 0.45rem 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.625rem;
    font-size: 0.8125rem;
    margin-left: 0.5rem;
    outline: none;
    width: 240px;
    background-color: #ffffff;
    color: #1e293b;
    transition: all 0.2s ease-in-out;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.dataTables_wrapper .dataTables_info {
    padding-top: 1rem;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 0.75rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 0.5rem !important;
    padding: 0.35rem 0.75rem !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #334155 !important;
    margin: 0 2px;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #059669 !important;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    border-color: #059669 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.25) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border-color: #a7f3d0 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
}

table.dataTable.no-footer {
    border-bottom: 1px solid #e2e8f0 !important;
}

table.dataTable thead th {
    border-bottom: 1px solid #e2e8f0 !important;
    font-weight: 700;
    color: #475569;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: #f8fafc;
    padding: 0.75rem 1rem !important;
}

table.dataTable tbody td {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid #f1f5f9;
}

table.dataTable tbody tr:hover {
    background-color: #f0fdf4 !important;
}

/* Action Dropdown Menu Styling */
.action-menu {
    z-index: 999999 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.12) !important;
}

@media (max-width: 768px) {
    .action-menu {
        max-width: calc(100vw - 20px) !important;
    }
    .action-menu a,
    .action-menu button {
        min-height: 38px !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        font-size: 13px !important;
        touch-action: manipulation !important;
    }
    [id^="action-container-"] button {
        min-width: 32px !important;
        min-height: 32px !important;
        touch-action: manipulation !important;
    }
}

/* 7. Custom Flatpickr DatePicker (Sports Emerald Accent) */
.flatpickr-calendar {
    background: #ffffff !important;
    border-radius: 14px !important;
    box-shadow: 0 14px 28px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #e2e8f0 !important;
    font-family: var(--font-main) !important;
    padding: 12px 10px !important;
    width: 330px !important;
    box-sizing: border-box !important;
    z-index: 9999999 !important;
}

.flatpickr-months {
    padding: 4px 0 8px 0 !important;
    align-items: center !important;
    position: relative !important;
}

.flatpickr-months .flatpickr-month {
    color: #0f172a !important;
    fill: #0f172a !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.flatpickr-current-month {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    height: 36px !important;
    padding: 0 !important;
    position: relative !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
}

.flatpickr-current-month select.flatpickr-monthDropdown-months {
    appearance: auto !important;
    -webkit-appearance: menulist !important;
    background-color: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    color: #0f172a !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    padding: 4px 8px !important;
    height: 32px !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.flatpickr-current-month select.flatpickr-monthDropdown-months:hover,
.flatpickr-current-month select.flatpickr-monthDropdown-months:focus {
    border-color: #10b981 !important;
    background-color: #ffffff !important;
}

.flatpickr-current-month .numInputWrapper {
    width: 68px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.flatpickr-current-month input.cur-year {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    padding: 4px 6px !important;
    height: 32px !important;
    background-color: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    text-align: center !important;
}

.flatpickr-current-month input.cur-year:focus {
    border-color: #10b981 !important;
    background-color: #ffffff !important;
}

.flatpickr-prev-month,
.flatpickr-next-month {
    position: absolute !important;
    top: 6px !important;
    padding: 6px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    color: #475569 !important;
    fill: #475569 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    fill: #0f172a !important;
}

.flatpickr-prev-month {
    left: 4px !important;
}

.flatpickr-next-month {
    right: 4px !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    border-color: #059669 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 10px -2px rgba(5, 150, 105, 0.4) !important;
}

.flatpickr-day.today {
    border-color: #6ee7b7 !important;
    color: #059669 !important;
    font-weight: 700 !important;
}

/* 8. Mandatory Red Star (*) and Strict jQuery Validation Errors */
.required-star,
.text-red-500,
.text-rose-500,
.text-red-600,
span.text-red-500,
span.text-rose-500,
label span.text-red-500,
label span.text-rose-500,
label span.text-red-600 {
    color: #ef4444 !important;
    font-weight: 800 !important;
    display: inline-block;
    margin-left: 2px;
}

/* Auto red asterisk for required fields */
label.required::after,
.is-required label::after {
    content: " *" !important;
    color: #ef4444 !important;
    font-weight: 800 !important;
}

/* Mandatory input controls in RED when not filled / invalid */
input.error,
select.error,
textarea.error,
input.is-invalid,
select.is-invalid,
textarea.is-invalid,
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border-color: #ef4444 !important;
    border-width: 1.5px !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 1px #ef4444 !important;
}

/* Dark mode / dark theme inputs invalid state */
.bg-stadium-950 input.error,
.bg-stadium-950 select.error,
.bg-stadium-950 textarea.error,
.bg-stadium-900 input.error,
.bg-stadium-900 select.error,
.bg-stadium-900 textarea.error,
.bg-stadium-950 input.is-invalid,
.bg-stadium-950 select.is-invalid,
.bg-stadium-950 textarea.is-invalid,
.bg-stadium-900 input.is-invalid,
.bg-stadium-900 select.is-invalid,
.bg-stadium-900 textarea.is-invalid {
    background-color: rgba(239, 68, 68, 0.12) !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
}

input.error:focus,
select.error:focus,
textarea.error:focus,
input.is-invalid:focus,
select.is-invalid:focus,
textarea.is-invalid:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
    outline: none !important;
}

/* Validation error text displayed beneath inputs (clean text without surrounding box) */
label.error,
label.is-invalid,
span.error,
.validation-error,
span.validation-error,
.text-error-msg,
.server-validation-error,
.invalid-feedback {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: #ef4444 !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    display: block !important;
    margin-top: 0.35rem !important;
    line-height: 1.25 !important;
    animation: fadeInError 0.15s ease-in-out;
}

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

/* 9. Dedicated Confirmation Modal (Clean Sporty Pop) */
#customConfirmModal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background-color: rgba(9, 16, 29, 0.65);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 16px;
}

#customConfirmModal.active {
    display: flex !important;
}

.confirm-modal-box {
    background-color: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    padding: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #e2e8f0;
    position: relative;
    animation: modalPop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    0% { transform: scale(0.96); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.confirm-modal-close {
    position: absolute !important;
    top: 14px !important;
    right: 16px !important;
    color: #94a3b8 !important;
    background: transparent !important;
    border: none !important;
    font-size: 22px !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

.confirm-modal-close:hover {
    color: #475569 !important;
}

.confirm-modal-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.3 !important;
    margin: 0 0 6px 0 !important;
}

.confirm-modal-subtitle {
    font-size: 13px !important;
    color: #64748b !important;
    margin: 0 0 18px 0 !important;
    line-height: 1.4 !important;
}

.confirm-modal-divider {
    width: 100% !important;
    height: 1px !important;
    background-color: #e2e8f0 !important;
    margin: 0 0 18px 0 !important;
}

.confirm-modal-buttons {
    display: flex !important;
    gap: 12px !important;
    width: 100% !important;
}

.confirm-btn-cancel {
    flex: 1 1 0% !important;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    cursor: pointer !important;
    text-align: center !important;
    transition: all 0.15s ease !important;
}

.confirm-btn-cancel:hover {
    background-color: #f8fafc !important;
    border-color: #94a3b8 !important;
}

.confirm-btn-confirm {
    flex: 1 1 0% !important;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    background-color: #dc2626 !important;
    border: 1px solid #dc2626 !important;
    cursor: pointer !important;
    text-align: center !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    transition: all 0.15s ease !important;
}

.confirm-btn-confirm:hover {
    background-color: #b91c1c !important;
    border-color: #b91c1c !important;
}

/* 10. Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 11. jQuery UI Datepicker Modern Turf ERP Sports Theme */
.ui-datepicker,
#ui-datepicker-div {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 1rem !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
    padding: 0.85rem !important;
    font-family: var(--font-main) !important;
    font-size: 0.825rem !important;
    z-index: 999999 !important;
    width: 18.5rem !important;
}

.ui-datepicker .ui-datepicker-header {
    background: linear-gradient(135deg, #064e3b 0%, #047857 100%) !important;
    border: none !important;
    border-radius: 0.75rem !important;
    padding: 0.6rem 0.5rem !important;
    color: #ffffff !important;
    position: relative !important;
    margin-bottom: 0.65rem !important;
}

.ui-datepicker .ui-datepicker-title {
    text-align: center !important;
    font-weight: 800 !important;
    font-size: 0.85rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
}

.ui-datepicker .ui-datepicker-title select {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 0.5rem !important;
    padding: 0.2rem 0.4rem !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    outline: none !important;
    cursor: pointer !important;
}

.ui-datepicker .ui-datepicker-title select option {
    background: #0f172a !important;
    color: #ffffff !important;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 1.75rem !important;
    height: 1.75rem !important;
    border-radius: 0.5rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: none !important;
    transition: all 0.15s ease !important;
}

.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

.ui-datepicker .ui-datepicker-prev { left: 0.4rem !important; }
.ui-datepicker .ui-datepicker-next { right: 0.4rem !important; }

.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
    display: none !important;
}

.ui-datepicker .ui-datepicker-prev::after {
    content: '‹';
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
}

.ui-datepicker .ui-datepicker-next::after {
    content: '›';
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
}

.ui-datepicker table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 2px !important;
    margin: 0 !important;
}

.ui-datepicker th {
    padding: 0.35rem 0 !important;
    text-align: center !important;
    font-weight: 800 !important;
    color: #64748b !important;
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.ui-datepicker td {
    padding: 1px !important;
    text-align: center !important;
}

.ui-datepicker td a,
.ui-datepicker td span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2.1rem !important;
    height: 2.1rem !important;
    margin: 0 auto !important;
    border-radius: 0.55rem !important;
    text-decoration: none !important;
    color: #1e293b !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    transition: all 0.15s ease !important;
    border: 1px solid transparent !important;
}

.ui-datepicker td a:hover {
    background: #ecfdf5 !important;
    color: #059669 !important;
    border-color: #a7f3d0 !important;
}

.ui-datepicker td.ui-datepicker-today a {
    border-color: #10b981 !important;
    color: #059669 !important;
    font-weight: 800 !important;
}

.ui-datepicker td.ui-datepicker-current-day a,
.ui-datepicker td .ui-state-active {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 6px -1px rgba(5, 150, 105, 0.35) !important;
}

.ui-datepicker .ui-state-disabled span {
    color: #cbd5e1 !important;
    opacity: 0.45 !important;
}

/* 12. Print Styling */
@media print {
    .no-print, #sidebar, aside, header, nav, #customConfirmModal, .dataTables_length, .dataTables_filter, .dataTables_paginate, .dataTables_info {
        display: none !important;
    }
    body, html {
        background: #ffffff !important;
        color: #0f172a !important;
        margin: 0 !important;
        padding: 0 !important;
        height: auto !important;
        min-height: auto !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .flex-1.flex.flex-col {
        overflow: visible !important;
        display: block !important;
    }
    main {
        padding: 0 !important;
        margin: 0 !important;
        background: #ffffff !important;
        width: 100% !important;
    }
}

/* 13. CKEditor & Rich Text Typography Support */
.ck.ck-content,
.ck-editor__editable_inline,
.ck-content,
.ck-content-rendered {
    word-break: break-word;
    text-align: left;
}

.ck.ck-content ul,
.ck-editor__editable_inline ul,
.ck-content ul,
.ck-content-rendered ul {
    list-style-type: disc !important;
    list-style-position: outside !important;
    padding-left: 1.75rem !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
    margin-left: 0.25rem !important;
}

.ck.ck-content ul ul,
.ck-editor__editable_inline ul ul,
.ck-content ul ul,
.ck-content-rendered ul ul {
    list-style-type: circle !important;
    padding-left: 1.5rem !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
}

.ck.ck-content ul ul ul,
.ck-editor__editable_inline ul ul ul,
.ck-content ul ul ul,
.ck-content-rendered ul ul ul {
    list-style-type: square !important;
}

.ck.ck-content ol,
.ck-editor__editable_inline ol,
.ck-content ol,
.ck-content-rendered ol {
    list-style-type: decimal !important;
    list-style-position: outside !important;
    padding-left: 1.75rem !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
    margin-left: 0.25rem !important;
}

.ck.ck-content ol ol,
.ck-editor__editable_inline ol ol,
.ck-content ol ol,
.ck-content-rendered ol ol {
    list-style-type: lower-alpha !important;
    padding-left: 1.5rem !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
}

.ck.ck-content ol ol ol,
.ck-editor__editable_inline ol ol ol,
.ck-content ol ol ol,
.ck-content-rendered ol ol ol {
    list-style-type: lower-roman !important;
}

.ck.ck-content li,
.ck-editor__editable_inline li,
.ck-content li,
.ck-content-rendered li {
    display: list-item !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
    padding-left: 0.25rem !important;
    line-height: 1.6 !important;
}

.ck.ck-content .todo-list,
.ck-editor__editable_inline .todo-list,
.ck-content .todo-list,
.ck-content-rendered .todo-list {
    list-style-type: none !important;
    padding-left: 0.5rem !important;
    margin-left: 0 !important;
}

.ck.ck-content .todo-list li,
.ck-editor__editable_inline .todo-list li,
.ck-content .todo-list li,
.ck-content-rendered .todo-list li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    margin-bottom: 0.35rem !important;
}

/* 14. Universal Custom Searchable Select Dropdown (Matches Clean Search Dropdown UI) */
.custom-search-select-wrapper {
    position: relative;
    width: 100%;
    display: block;
    font-family: var(--font-main, 'Plus Jakarta Sans', sans-serif);
    text-align: left;
}

.custom-select-hidden-native {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    pointer-events: none !important;
}

.custom-search-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    min-height: 38px;
    padding: 0.5rem 0.875rem;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease-in-out;
    text-align: left;
    outline: none;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}

.custom-search-select-trigger:hover {
    border-color: #94a3b8;
}

.custom-search-select-trigger.active,
.custom-search-select-trigger:focus-visible,
.custom-search-select-wrapper.is-open .custom-search-select-trigger {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.custom-search-select-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.custom-search-select-label.is-placeholder {
    color: #64748b;
    font-weight: 400;
}

.custom-search-select-chevron {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: transform 0.2s ease;
}

.custom-search-select-wrapper.is-open .custom-search-select-chevron {
    transform: rotate(180deg);
}

.custom-search-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    min-width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    padding: 0.5rem;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    pointer-events: none;
}

.custom-search-select-wrapper.is-open {
    z-index: 50;
}

.custom-search-select-wrapper.is-open .custom-search-select-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.custom-search-select-wrapper.is-open-up .custom-search-select-dropdown {
    top: auto;
    bottom: calc(100% + 4px);
    transform: translateY(4px);
    box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.1), 0 -8px 10px -6px rgba(0, 0, 0, 0.04);
}

.custom-search-select-wrapper.is-open.is-open-up .custom-search-select-dropdown {
    transform: translateY(0);
}

.custom-search-select-search-wrap {
    position: relative;
    margin-bottom: 0.375rem;
    width: 100%;
}

.custom-search-select-search-icon {
    position: absolute;
    left: 0.625rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0.95rem;
    height: 0.95rem;
    color: #94a3b8;
    pointer-events: none;
}

.custom-search-select-search-input {
    width: 100%;
    padding: 0.45rem 0.625rem 0.45rem 2rem;
    font-size: 0.8125rem;
    font-family: inherit;
    color: #1e293b;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.custom-search-select-search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6;
}

.custom-search-select-search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.custom-search-select-options-list {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    list-style: none;
    scrollbar-width: thin;
}

.custom-search-select-options-list::-webkit-scrollbar {
    width: 5px;
}

.custom-search-select-options-list::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 9999px;
}

.custom-search-select-option {
    padding: 0.5rem 0.75rem;
    margin: 0.125rem 0;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    color: #1e293b;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    user-select: none;
}

.custom-search-select-option:hover,
.custom-search-select-option.is-highlighted {
    background-color: #f1f5f9;
    color: #0f172a;
}

.custom-search-select-option.is-selected {
    background-color: #f1f5f9;
    font-weight: 600;
    color: #0f172a;
}

.custom-search-select-option.is-disabled {
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.6;
}

.custom-search-select-optgroup {
    padding: 0.375rem 0.625rem 0.125rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.05em;
}

.custom-search-select-no-results {
    padding: 0.75rem 0.5rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.75rem;
    font-style: italic;
    display: none;
}

/* Validation error reflection on custom select */
.is-invalid ~ .custom-search-select-trigger,
select.is-invalid ~ .custom-search-select-trigger,
.custom-search-select-wrapper:has(select.is-invalid) .custom-search-select-trigger,
.custom-search-select-wrapper:has(select.\!border-rose-500) .custom-search-select-trigger,
.custom-search-select-wrapper:has(select.border-red-500) .custom-search-select-trigger {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

/* Strangers Growth Core Action Buttons */
.btn-sg-primary {
    background-color: #10b981 !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
}
.btn-sg-primary:hover,
.btn-sg-primary:focus {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #ffffff !important;
    border-color: #059669 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45) !important;
}
.btn-sg-primary,
.btn-sg-primary * {
    color: #ffffff !important;
}

.btn-sg-secondary {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
}
.btn-sg-secondary:hover,
.btn-sg-secondary:focus {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25) !important;
}
.btn-sg-secondary,
.btn-sg-secondary * {
    color: #ffffff !important;
}

