:root {
    /* Colors */
    --bg: #ffffff;
    --surface: #f8fafc;
    --fg: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --accent: #000000;
    --accent-fg: #ffffff;
    --danger: #ef4444;
    /* Layout */
    --sidebar-width: 280px;
    --sidebar-collapsed: 80px;
    /* Motion */
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    /* Font */
    --font-main: "Inter", system-ui, sans-serif;
}

/* Base */
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: var(--font-main);
    background: var(--surface);
    color: var(--fg);
    -webkit-font-smoothing: antialiased;
}

/* Global Custom Scrollbar */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #4b5563;
    /* Match leaderboard thumb color */
    border-radius: 10px;
}

/* ================= flash messages ================= */
/* Ensure the container is above EVERYTHING */
.flash-message-container {
    z-index: 9999 !important;
    pointer-events: none; /* Allows clicking things 'under' the empty container */
}
.flash-alert {
    pointer-events: auto; /* Re-enable clicking for the alert itself */
    animation: slideInRight 0.4s ease forwards;
}
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ================= SIDEBAR ================= */
.sidebar {
    width: var(--sidebar-width);
    height: calc(100vh - 2rem);
    position: fixed;
    top: 1rem;
    left: 1rem;
    background: var(--bg);
    border: none;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    transition: var(--transition);
    z-index: 1000;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

/* Brand */
.brand-section {
    padding: 0 0 2rem 2.5rem;
    white-space: nowrap;
    overflow: hidden;
}

.logo-tchaco {
    font-size: 30px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.05em;
}

.logo-group {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 2px;
}

.sidebar.collapsed .logo-group {
    display: none;
}

/* Navigation */
.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;

    /* Firefox Support - Default Hidden */
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.3s;
}

.nav-list:hover {
    /* Firefox Support - Visible on Hover */
    scrollbar-color: #4b5563 transparent;
}

/* Webkit Scrollbar Customization for Sidebar */
.nav-list::-webkit-scrollbar {
    width: 4px;
}

.nav-list::-webkit-scrollbar-track {
    background: transparent;
}

.nav-list::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 10px;
    transition: background 0.3s;
}

.nav-list:hover::-webkit-scrollbar-thumb {
    background: #4b5563;
}

/* Remove Up/Down Buttons */
.nav-list::-webkit-scrollbar-button {
    display: none;
}

.nav-item {
    margin-bottom: 6px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    gap: 12px;
    position: relative;
}

.nav-link:hover {
    background: #f1f5f9;
    color: var(--fg);
}

.nav-link.active {
    background: var(--accent);
    color: var(--accent-fg);
}

/* Icons */
.nav-icon {
    font-size: 18px;
    min-width: 22px;
    text-align: center;
}

.nav-text {
    transition: opacity 0.2s;
}

.sidebar.collapsed .nav-text {
    opacity: 0;
    width: 0;
    pointer-events: none;
}

/* Tooltip (collapsed) */
.sidebar.collapsed .nav-link:hover::after {
    content: attr(data-title);
    position: absolute;
    left: 100%;
    margin-left: 10px;
    padding: 5px 10px;
    background: #000;
    color: #fff;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
}

/* Footer */
.sidebar-footer {
    border-top: 1px solid var(--border);
    padding-top: 0.1rem;
    margin-top: 0.1rem;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.logout-btn:hover {
    background: #fef2f2;
    color: var(--danger);
}

/* Toggle Button */
.toggle-btn {
    position: absolute;
    top: 1.5rem;
    right: -15px;
    width: 30px;
    height: 30px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid #fff;
}

.sidebar.collapsed .toggle-btn {
    transform: rotate(180deg);
}

/* ================= MAIN ================= */
.main-container {
    /* border:1px solid black; */
    margin-left: 300px;
    /* padding: 1rem; */
    transition: var(--transition);
}

.sidebar.collapsed ~ .main-container {
    margin-left: var(--sidebar-collapsed);
}

/* Header */
.dashboard-header {
    margin-left: 310px;
    margin-top: 1rem;
    margin-right: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.welcome-section h1 {
    font-size: 24px;
    margin: 0;
}

.welcome-section p {
    font-size: 14px;
    color: var(--muted);
    margin: 4px 0 0;
}

/* Right Side */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification-bell {
    position: relative;
    font-size: 20px;
    cursor: pointer;
}

.notification-dot {
    position: absolute;
    top: 2px;
    right: 0;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
}
.list-group-item {
    transition: background-color 0.2s ease-in-out;
    border-left: none;
    border-right: none;
}

.list-group-item:first-child {
    border-top: none;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover {
    background-color: #f1f5f9 !important;
    cursor: pointer;
}

/* User */
.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.user-name {
    font-size: 14px;
}
#country-dropdown .dropdown-item.active {
    background-color: #f8f9fa;
    color: #212529;
}
#country-dropdown .dropdown-item:active {
    background-color: #e9ecef;
    color: #212529;
}
/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
    .mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
    }
    /* .sidebar {
        transform: translateX(-100%);
    } */

    .sidebar {
        transform: translateX(-150%);
    }
    /* .main-container,
    .sidebar.collapsed~.main-container {
        margin-left: 0;
        padding: 1rem;
    } */
    .sidebar.mobile-show {
        transform: translateX(0);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }
    /*
    .sidebar.show { 
        transform: translateX(0);
    }
*/
    /* .main-container {
        margin-left: 0;
        padding: 1.5rem;
    } */
    .main-container,
    .sidebar.collapsed ~ .main-container {
        margin-left: 0;
        padding: 1rem;
    }

    .dashboard-header {
        margin-left: 1rem;
        padding-left: 3rem;
        /* flex-direction: column; */
        align-items: flex-start;
        gap: 1rem;
    }
}

/* ===== BASE ===== */
body {
    font-family: "Inter", system-ui, sans-serif;
    background: #f8fafc;
    color: #0f172a;
}

/* ===== BREADCRUMB ===== */
.breadcrumb-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 24px;
}

/* ===== HEADER ===== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
}

/* ===== BUTTONS ===== */
.btn-black {
    background: #000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-outline {
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-orange {
    background: #f97316;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    display: flex;
    gap: 6px;
}

/* ===== CARD ===== */
.custom-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

/* ===== IMAGE ===== */
.hero-img-container {
    border-radius: 12px;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

/* ===== TAGS ===== */
.tag-group {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.tag {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    background: #f1f5f9;
    color: #64748b;
}

/* ===== ACTION BUTTONS ===== */
.action-row {
    display: flex;
    gap: 8px;
}

/* ===== STATS ===== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.stat-item .label {
    font-size: 12px;
    color: #64748b;
}

.stat-item .value {
    font-size: 14px;
    font-weight: 600;
}

/* ===== TABS ===== */
.tab-nav {
    display: flex;
    gap: 6px;
    padding: 6px;
    background: #f1f5f9;
    border-radius: 8px;
    width: fit-content;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 8px 16px;
    font-size: 13px;
    border: none;
    background: transparent;
    border-radius: 6px;
    color: #64748b;
}

.tab-btn.active {
    background: #000;
    color: #fff;
}

/* ===== FILTER ===== */
.filter-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.search-box {
    position: relative;
    flex: 1;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
}

.search-input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
}

/* ===== TABLE ===== */
.table-container {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

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

.data-table th {
    padding: 14px;
    font-size: 12px;
    color: #64748b;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.data-table td {
    padding: 14px;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
}

/* ===== STATUS ===== */
.status-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.status-delivered {
    background: #ecfdf5;
    color: #16a34a;
}

.status-processing {
    background: #fef2f2;
    color: #dc2626;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .filter-row {
        flex-direction: column;
    }
}

/* ===== RACE MANAGEMENT ===== */

/* Badges */
.badge-virtual {
    color: #10b981;
    background: #d1fae5;
}

.badge-running {
    color: var(--muted);
    background: #f1f5f9;
}

.badge-ongoing {
    color: #f97316;
    background: #ffedd5;
}

.badge-regular {
    color: #6366f1;
    background: #e0e7ff;
}

.badge-cycling {
    color: #ec4899;
    background: #fce7f3;
}

/* Race Card */
.race-card {
    border-radius: 1.25rem;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.race-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.race-card-img {
    height: 220px;
    border-radius: 1.25rem 1.25rem 0 0;
    object-fit: cover;
}

/* Tabs Scroll */
.tabs-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tabs-scroll::-webkit-scrollbar {
    display: none;
}

/* Action Buttons */
.action-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Danger Icon Button */
.btn-icon-danger {
    background: #fee2e2;
    color: var(--danger);
    transition: var(--transition);
}

.btn-icon-danger:hover {
    background: #fca5a5;
    color: #b91c1c;
}

/* ===== FORM (CREATE RACE) ===== */


/* ===== FORM (BULK REGISTRATION) ===== */
     .page-processing-overlay {
            position: fixed;
            inset: 0;
            background: rgba(255,255,255,0.9);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
        }
        .page-processing-card {
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 16px;
            padding: 2rem 2.5rem;
            text-align: center;
            box-shadow: 0 8px 30px rgba(0,0,0,0.08);
        }

/* Inputs */
.form-control,
.form-select {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    box-shadow: none;
}
.spin {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}
.form-control:focus,
.form-select:focus {
    border-color: #cbd5e1;
    box-shadow: 0 0 0 0.2rem rgba(15, 23, 42, 0.05);
}

.form-control::placeholder {
    color: #adb5bd;
}

/* Labels */
.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #343a40;
}
/* drop-down style for race create page */

/* Premium Select2 Styling to match Bootstrap 5 (48px height) */
.select2-container.select2 {
    display: block;
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 48px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 1rem !important;
    padding-right: 2.5rem !important;
    border-radius: 0.5rem !important;
    border: 1px solid #cbd5e1 !important;
    background-color: #fff !important;
    position: relative;
    transition:
        border-color 0.15s ease-in-out,
        box-shadow 0.15s ease-in-out;
    display: block !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #0f172a !important;
    box-shadow: 0 0 0 0.2rem rgba(15, 23, 42, 0.05) !important;
    outline: 0 !important;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    line-height: 46px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    color: #0f172a !important;
    font-size: 0.9rem !important;
    font-weight: 500;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__placeholder {
    color: #94a3b8 !important;
    font-size: 0.9rem !important;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 46px !important;
    width: 30px !important;
    position: absolute !important;
    top: 0 !important;
    right: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__arrow
    b {
    border-color: #64748b transparent transparent transparent !important;
    border-style: solid !important;
    border-width: 5px 4px 0 4px !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    position: static !important;
}

.select2-container--default.select2-container--open
    .select2-selection--single
    .select2-selection__arrow
    b {
    border-color: transparent transparent #64748b transparent !important;
    border-width: 0 4px 5px 4px !important;
}

.select2-container--default .select2-dropdown {
    border-color: #cbd5e1 !important;
    border-radius: 0.5rem !important;
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -4px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden;
    z-index: 9999;
    margin-top: 5px !important;
}

.select2-container--default .select2-results > .select2-results__options {
    max-height: 170px !important;
    padding-bottom: 5px !important;
    padding-top: 4px !important;
}

.select2-container--default .select2-results__option {
    padding: 10px 16px !important;
    font-size: 0.9rem !important;
    color: #334155 !important;
}

.select2-container--default
    .select2-results__option--highlighted[aria-selected] {
    background-color: #0f172a !important;
    color: #fff !important;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    font-weight: 500;
}

.select2-search--dropdown {
    padding: 10px 12px !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #cbd5e1 !important;
    border-radius: 0.375rem !important;
    padding: 8px 12px !important;
    font-size: 0.875rem !important;
    outline: none !important;
    color: #0f172a !important;
}

.select2-container--default
    .select2-search--dropdown
    .select2-search__field:focus {
    border-color: #0f172a !important;
    box-shadow: 0 0 0 0.15rem rgba(15, 23, 42, 0.05) !important;
}

.ud-wrapper {
    padding-bottom: 5px !important;
}

.ud-wrapper.dropdown-active {
    padding-bottom: 50px !important;
    transition: padding-bottom 0.15s ease-out;
}

/* Form Section */
.form-section {
    background: var(--bg);
    border-radius: 1.25rem;
    padding: 2.5rem;
    border: 1px solid #f1f5f9;
    margin-bottom: 2rem;
}

.spin {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
.translation-toggle.active {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}
.translation-panel .form-label small {
    font-weight: 500;
}
.cursor-pointer {
    cursor: pointer;
}
.image-preview-trigger:hover {
    opacity: 0.85;
    transition: opacity 0.2s;
}
/* Upload */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: 0.75rem;
    padding: 3rem 1.5rem;
    text-align: center;
    background: #fafafa;
    cursor: pointer;
    transition: 0.2s;
}

.upload-area:hover {
    border-color: #cbd5e1;
    background: #f8f9fa;
}

/* Editor */
.editor-toolbar {
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 0.5rem 0.5rem 0 0;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
}

.editor-textarea {
    border-radius: 0 0 0.5rem 0.5rem;
    min-height: 180px;
}

/* Light Icon Button */
.btn-icon-light {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    transition: var(--transition);
}

.btn-icon-light:hover {
    background: #e2e8f0;
    color: #495057;
}

/* Section Heading */
.section-heading {
    font-weight: 700;
    color: var(--fg);
    font-size: 1.1rem;
}

.flatpickr-input,
.flatpickr-date,
.flatpickr-time {
    height: 48px !important;
    line-height: 48px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Ensure Bootstrap consistency */
.form-control.flatpickr-input {
    display: block;
    width: 100%;
}

/* Fix text vertical alignment */
.flatpickr-time {
    text-align: left !important;
}

/* Fix icon spacing consistency */
.position-relative .form-control {
    padding-right: 2.75rem !important;
}

/* Fix icon perfect alignment */
.position-relative i {
    top: 50%;
    transform: translateY(-50%);
    right: 14px !important;
}

/* Mobile Toggle */
.mobile-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1050;
    display: none;
    /* Hidden on desktop */
}
/* mobile view css */
@media (max-width: 480px) {
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
    }

    .sidebar {
        transform: translateX(-150%);
    }

    .sidebar.mobile-show {
        transform: translateX(0);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }

    .main-container,
    .sidebar.collapsed ~ .main-container {
        margin-left: 0;
        padding: 1rem;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 3.5rem;
    }
}

/* dashboard css start */
/* Custom Dashboard Styles scoped to this view */

/* Background */
.dashboard-wrapper {
    background-color: #f8fafc;
    /* light grey background */
    min-height: 100vh;
    padding-bottom: 2rem;
}

/* Stat Card */
/* .stat-card {
    background-color: #fff;
    border-radius: 1.25rem;
   border-bottom-right-radius: 10rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: none;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.stat-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #000;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
} */
.stat-card {
    background-color: #ffffff;
    width: 290px;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    /* This prevents the bottom right corner of the white card from showing under the notch */
    border-bottom-right-radius: 50px;
}
.stat-card:hover {
    transform: translateY(-8px);

    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.stat-content {
    width: 100%;
    padding: 24px 24px 20px 18px;
}

/* Typography */
.stat-number {
    /* font-size: 42px; */
    font-weight: 100;
    color: #111827;
    margin: 0 0 12px 0;
}

.stat-trend {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #9ca3af;
    margin-bottom: 32px;
}

.stat-trend.positive .trend-icon {
    color: #84cc16;
    /* Light green arrow */
    margin-right: 6px;
    font-size: 12px;
}

.stat-title {
    font-size: 14px;
    font-weight: 300;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
}

.stat-title-user {
    font-size: 16px;
    font-weight: 450;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
}

/* The Notch and Button */
.notch-container {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 72px;
    height: 72px;
    background-color: #f4f5f7;
    /* Must match the body background color */
    border-top-left-radius: 32px;
    /* Creates the inner curve of the notch */
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

/* Adding the extra curves to smooth out the notch transition */
.notch-container::before {
    content: "";
    position: absolute;
    top: -24px;
    right: 0;
    width: 24px;
    height: 24px;
    background-color: transparent;
    border-bottom-right-radius: 24px;
    box-shadow: 0 12px 0 0 #f4f5f7;
}

.notch-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -24px;
    width: 24px;
    height: 24px;
    background-color: transparent;
    border-bottom-right-radius: 24px;
    box-shadow: 12px 0 0 0 #f4f5f7;
}

.chart-btn {
    background-color: #000000;
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    /* Optional: Add a slight offset to position it perfectly in the notch */
    margin-bottom: 4px;
    margin-right: 4px;
}

.chart-btn:hover {
    transform: rotate(-360deg) scale(1.06);
    transition: transform 0.8s ease-in-out;
}

/* Content Card */
.content-card {
    background-color: #fff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: none;
    margin-bottom: 1.5rem;
}
.participant-overview {
    background-color: #fff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    /* max-width: 1035px; */
    /* min-width: 210px; */
    width: clamp(370px, 100%, 1035px);
    margin-left: 0.8rem;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03);
    /* border: none; */
    margin-bottom: 1rem;
}
/* Overlapping Avatars */
.avatar-group {
    display: flex;
    align-items: center;
}

.avatar-group img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -10px;
    object-fit: cover;
}

.avatar-group img:first-child {
    margin-left: 0;
}

.avatar-group .more-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -10px;
    background-color: #f1f5f9;
    color: #0f172a;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* Event List Item */
.event-list-item {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.event-list-item:last-child {
    margin-bottom: 0;
}

.event-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 0.5rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #64748b;
}

/* Recent Activity Icon */
.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.25rem;
    border: 1px solid #e2e8f0;
}

/* Leaderboard Wrapper */
.leaderboard-wrapper {
    background-color: #000;
    border-radius: 1.25rem;
    padding: 1.5rem;
    color: #fff;
    width: 100%;
    margin-bottom: 1.5rem;
    /* overflow: hidden; */
}

.leaderboard-header h5 {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.leaderboard-header p {
    color: #94a3b8;
    font-size: 0.75rem;
    margin-bottom: 1.25rem;
}

.leaderboard-dropdown {
    background-color: #262626;
    border: none;
    color: #fff;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

/* Custom Scroll Area */
.leaderboard-scroll-area {
    max-height: 360px;
    overflow-y: auto;
    padding-right: 0.75rem;
    margin-right: -0.75rem;

    /* Firefox Support */
    scrollbar-width: thin;
    scrollbar-color: #4b5563 transparent;
}

.leaderboard-scroll-area2 {
    max-height: 450px;
    overflow-y: auto;
    padding-right: 0.75rem;
    margin-right: -0.75rem;

    /* Firefox Support */
    scrollbar-width: thin;
    scrollbar-color: #4b5563 transparent;
}

/* Webkit Custom Scrollbar for Leaderboard */
.leaderboard-scroll-area::-webkit-scrollbar {
    width: 4px;
}

.leaderboard-scroll-area::-webkit-scrollbar-track {
    background: transparent;
}

.leaderboard-scroll-area::-webkit-scrollbar-thumb {
    background-color: #4b5563;
    border-radius: 10px;
}

/* Podium Layout */
.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
}

.podium-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 32%;
}

.rank-text {
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    color: #fff;
}

/* Podium Avatars */
.podium-avatar-wrapper {
    position: relative;
    margin-bottom: -24px;
    /* Pulls the box up to overlap perfectly */
    z-index: 10;
}

.podium-col.first .podium-avatar-wrapper {
    margin-bottom: -32px;
    z-index: 20;
}

.podium-avatar {
    border-radius: 50%;
    object-fit: cover;
}

.podium-col.second .podium-avatar,
.podium-col.third .podium-avatar {
    width: 56px;
    height: 56px;
    border: 2px solid #ef4444;
    background-color: #000;
}

.podium-col.first .podium-avatar {
    width: 72px;
    height: 72px;
    border: 3px solid #ef4444;
    background-color: #000;
}

/* Crown Icon */
.crown-badge {
    position: absolute;
    top: -4px;
    left: -4px;
    background-color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 2px solid #ff0000;
    z-index: 25;
}

/* Podium Boxes */
.podium-box {
    width: 100%;
    text-align: center;
}

.podium-box.second,
.podium-box.third {
    height: 110px;
    background-color: #1e1e1e;
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.podium-box.second {
    border-top-left-radius: 0.75rem;
    border-bottom-left-radius: 0.75rem;
    margin-right: -8px;
    /* Tucks seamlessly behind first place */
    z-index: 1;
}

.podium-box.third {
    border-top-right-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
    margin-left: -8px;
    /* Tucks seamlessly behind first place */
    z-index: 1;
}

.podium-box.first {
    height: 135px;
    background-color: #ef4444;
    border-radius: 0.75rem;
    padding-top: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.35);
}

/* Podium Box Typography */
.podium-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.podium-role {
    font-size: 0.65rem;
    margin-bottom: 6px;
}

.podium-box.first .podium-role {
    color: rgba(255, 255, 255, 0.9);
}

.podium-box.second .podium-role,
.podium-box.third .podium-role {
    color: #fbbf24;
}

.podium-score {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.podium-events {
    font-size: 0.65rem;
}

.podium-box.first .podium-events {
    color: rgba(255, 255, 255, 0.9);
}

.podium-box.second .podium-events,
.podium-box.third .podium-events {
    color: #94a3b8;
}

/* Rank List Items */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.leaderboard-item {
    background-color: #262626;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
}

.leaderboard-item-rank {
    width: 32px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.text-warning {
    color: #fbbf24 !important;
}

.leaderboard-item-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.85rem;
}

.leaderboard-item-info {
    flex-grow: 1;
}

.leaderboard-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.leaderboard-item-role {
    font-size: 0.65rem;
    color: #fff;
}

.leaderboard-item-stats {
    text-align: right;
}

.leaderboard-item-score {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.leaderboard-item-events {
    font-size: 0.65rem;
    color: #fff;
}

/* Active Race Custom Scrollbar */
.active-race-scroll {
    max-height: 420px;
    overflow-y: auto;
    /* padding-right: 6px; */
    margin-right: -6px;

    /* Firefox Support */
    scrollbar-width: thin;
    scrollbar-color: #4b5563 transparent;
}

/* Webkit Custom Scrollbar for Active Race */
.active-race-scroll::-webkit-scrollbar {
    width: 4px;
}

.active-race-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.active-race-scroll::-webkit-scrollbar-thumb {
    background-color: #4b5563;
    border-radius: 10px;
}

/* Horizontal Race Card */
.h-race-card {
    display: flex;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.h-race-img {
    width: 140px;
    min-height: 100%;
    object-fit: cover;
}

.h-race-body {
    padding: 1.25rem;
    flex-grow: 1;
}

/* Utilities */
.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

/* ================= USER MANAGEMENT ================= */
.um-wrapper {
    background-color: #f8fafc;
    min-height: 100vh;
    padding-bottom: 2rem;
}

/* KPI Cards */
.um-kpi-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    border: none;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03);
    height: 100%;
}

.um-kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #0f172a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.um-kpi-growth {
    font-size: 0.75rem;
    font-weight: 600;
    color: #10b981;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Controls Toolbar */
.um-search-wrap {
    position: relative;
    max-width: 350px;
    width: 100%;
}

.um-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
}

.um-search-input {
    padding-left: 2.75rem;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    font-size: 0.875rem;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.um-search-input:focus {
    border-color: #cbd5e1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.um-filter-btn {
    border: 1px solid #e2e8f0;
    background-color: #fff;
    color: #0f172a;
    border-radius: 9999px;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.um-view-toggle {
    display: inline-flex;
    background-color: #f1f5f9;
    border-radius: 9999px;
    padding: 0.25rem;
}

.um-toggle-btn {
    border: none;
    background: transparent;
    border-radius: 9999px;
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.um-toggle-btn.active {
    background-color: #0f172a;
    color: #fff;
}

/* Data Table */
.um-table-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.um-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.um-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
    padding: 1rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    letter-spacing: 0.025em;
}

.um-table td {
    padding: 1rem;
    vertical-align: middle;
    font-size: 0.875rem;
    border-bottom: 1px solid #f1f5f9;
    color: #0f172a;
}

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

.um-table tbody tr:hover {
    background-color: #f8fafc;
}

.um-user-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.um-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.um-user-name {
    font-weight: 600;
    margin-bottom: 0;
}

.um-user-role {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0;
}

.um-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.um-status-active {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.um-action-btn {
    border: none;
    background: transparent;
    color: #64748b;
    padding: 0.35rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: color 0.2s;
    font-size: 1.1rem;
}

.um-action-btn:hover {
    color: #0f172a;
    background-color: #f1f5f9;
}

.um-action-btn.approve:hover {
    color: #10b981;
}

.um-action-btn.delete:hover {
    color: #ef4444;
}

/* Pagination */
.um-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.um-page-btn {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.um-page-btn:hover:not(:disabled) {
    background-color: #f8fafc;
    color: #0f172a;
}

.um-page-btn.active {
    background-color: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.um-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.um-page-dots {
    color: #64748b;
    padding: 0 0.25rem;
}

/* ================= USER DETAILS ================= */
.ud-wrapper {
    background-color: #f8fafc;
    min-height: 100vh;
    padding-bottom: 1rem;
}

.ud-back-btn {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.ud-back-btn:hover {
    background-color: #f8fafc;
    color: #0f172a;
}

.ud-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.ud-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

.ud-profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 1.5rem;
}

.ud-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.ud-edit-btn {
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 9999px;
    padding: 0.35rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ud-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.ud-info-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.ud-info-value {
    font-size: 0.875rem;
    color: #0f172a;
    font-weight: 500;
}

.ud-dark-card {
    background: #000;
    color: #fff;
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #1a1a1a;
    margin-bottom: 1.25rem;
}

.ud-dark-card:last-child {
    margin-bottom: 0;
}

.ud-dark-card .ud-section-title {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.ud-inner-dark-card {
    background: #121212;
    border-radius: 1.25rem;
    padding: 1rem;
    min-height: 140px;
    position: relative;
    border: 1px solid #1f1f1f;
    transition: all 0.2s;
    height: 100%;
}

.ud-inner-dark-card:hover {
    border-color: #333;
    background: #161616;
}

.ud-achievement-label {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    text-align: left;
    line-height: 1.2;
    margin-bottom: 1rem;
    display: block;
}

.ud-rank-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    border: 2px solid #262626;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.ud-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #121212;
    border: 1px solid #262626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #a3e635;
}

.ud-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #a3e635;
    margin-top: 0.5rem;
    letter-spacing: -0.02em;
}

.ud-stat-label {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 0.25rem;
}

.ud-notif-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.ud-notif-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #64748b;
}

.ud-table th {
    background: transparent;
    border-bottom: 1px solid #f1f5f9;
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem;
}

.ud-table td {
    padding: 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.badge-road {
    background: #f1f5f9;
    color: #64748b;
}

.badge-virtual {
    background: #f0fdf4;
    color: #16a34a;
}

.badge-cycling {
    background: #fff1f2;
    color: #e11d48;
}

.badge-delivered {
    background: #f0fdf4;
    color: #16a34a;
}

.badge-shipped {
    background: #eff6ff;
    color: #3b82f6;
}

.badge-processing {
    background: #fff7ed;
    color: #f97316;
}

/* Activity Styles */
.ud-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.ud-activity-item:last-child {
    border-bottom: none;
}

.ud-activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1rem;
    flex-shrink: 0;
}

.ud-activity-time {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

.ud-stat-item {
    margin-bottom: 1.5rem;
}

.ud-stat-item:last-child {
    margin-bottom: 0;
}

.ud-stat-label-light {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.ud-stat-value-dark {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ud-stat-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    background: #f0fdf4;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ud-stat-icon-clock {
    background: #f0fdf4;
    color: #16a34a;
}

/* Illustration */
.ud-illustration-container {
    margin-top: 2rem;
    text-align: center;
}

.ud-illustration-container img {
    max-width: 100%;
    height: auto;
    opacity: 0.9;
}

.ud-fitness-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

@media (max-width: 1200px) {
    .ud-fitness-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ud-fitness-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Modal Styles */
.modal-content {
    border-radius: 1.25rem;
    border: none;
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid #f1f5f9;
    padding: 1.5rem;
}

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

.fitness-table td {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    font-size: 0.875rem;
}

.fitness-table td:first-child {
    font-weight: 600;
    color: #64748b;
    background: #fcfcfc;
    width: 50%;
}

/* ================= LEADERBOARD ================= */
.lb-wrapper {
    background-color: #f8fafc;
    min-height: 100vh;
    padding-bottom: 3rem;
}

.lb-kpi-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.lb-kpi-value {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.lb-kpi-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.lb-kpi-growth {
    font-size: 0.75rem;
    font-weight: 600;
    color: #84cc16;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.lb-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 1.25rem;
}

.lb-main-card {
    background: #000;
    border-radius: 1.5rem;
    padding: 2rem;
    border: none;
}

.lb-card-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.lb-podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    margin-bottom: 0;
    margin-top: 2rem;
}

.lb-podium-item {
    text-align: center;
    width: 140px;
    position: relative;
}
.lb-podium-item:hover {
    transform: translateY(-4px);
    transition: all 0.2s;
}

.lb-podium-rank {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.lb-podium-avatar-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
}

.lb-podium-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #ff0000;
    object-fit: cover;
}

.lb-podium-crown {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    color: #ef4444;
    font-size: 1.25rem;
}

.lb-podium-stats {
    background: #2A2A2A;
    border-radius: 0;
    padding: 1.25rem 0.75rem;
    border: none;
}

.lb-podium-item:first-child .lb-podium-stats {
    border-radius: 0.75rem 0 0 0;
}

.lb-podium-item:last-child .lb-podium-stats {
    border-radius: 0 0.75rem 0 0;
}

.lb-podium-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.lb-podium-dept {
    font-size: 0.65rem;
    color: #f97316;
    margin-bottom: 0.75rem;
}

.lb-podium-time {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
}

.lb-podium-events {
    font-size: 0.65rem;
    color: #64748b;
}

.lb-podium-item.first {
    transform: scale(1.1);
    transform-origin: bottom center;
    z-index: 10;
}
.lb-podium-item.first:hover {
    transform: scale(1.15);
}

.lb-podium-item.first .lb-podium-stats {
    background: #ff0000;
    border: none;
    border-radius: 0.5rem 0.5rem 0 0;
}

.lb-podium-item.first .lb-podium-dept {
    color: rgba(255, 255, 255, 0.8);
}

.lb-podium-item.first .lb-podium-events {
    color: rgba(255, 255, 255, 0.9);
}

.lb-rank-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 570px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.lb-rank-list::-webkit-scrollbar {
    width: 3px;
}

.lb-rank-list::-webkit-scrollbar-track {
    background: transparent;
}

.lb-rank-list::-webkit-scrollbar-thumb {
    background: #64748b;
    border-radius: 10px;
}

.lb-rank-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.lb-rank-row {
    background: #2A2A2A;
    border-radius: 0.75rem;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: none;
    transition: all 0.2s;
}

.lb-rank-row:hover {
    background: #333333;
}

.lb-rank-num {
    width: 30px;
    font-weight: 800;
    color: #f97316;
    font-size: 0.9rem;
}

.lb-rank-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.lb-rank-info {
    flex-grow: 1;
}

.lb-rank-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0;
}

.lb-rank-dept {
    font-size: 0.7rem;
    color: #64748b;
}

.lb-rank-stat {
    text-align: right;
}

.lb-rank-time {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    display: block;
}

.lb-rank-events {
    font-size: 0.7rem;
    color: #64748b;
}

.lb-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.lb-page-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    background: #fff;
    color: #000;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    transition: all 0.2s;
}

.lb-page-link.active {
    background: #ff0000;
    color: #fff;
    border: none;
}

.lb-page-link:hover:not(.active) {
    background: #f8fafc;
}

/* Global Custom Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 20px;
    border: 2px solid #f8fafc;
}

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

/* Override for dark sections */
.lb-rank-list {
    scrollbar-width: thin;
    scrollbar-color: #64748b transparent;
}

.lb-rank-list::-webkit-scrollbar {
    width: 3px;
}

.lb-rank-list::-webkit-scrollbar-track {
    background: transparent;
}

.lb-rank-list::-webkit-scrollbar-thumb {
    background: #64748b;
    border-radius: 10px;
}

/* ================= ALL USERS TABLE ================= */
.lb-table-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.lb-table-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.lb-table-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.lb-table thead th {
    background: transparent;
    border-bottom: 1px solid #f1f5f9;
    color: #94a3b8;
    font-size: 0.75rem;
    text-transform: capitalize;
    font-weight: 500;
    padding: 1.25rem 1rem;
}

.lb-table tbody td {
    padding: 1.25rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f8fafc;
    font-size: 0.875rem;
}

.lb-table-race {
    color: #64748b;
    font-weight: 50;
}

.lb-table-participant {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lb-table-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.lb-table-name {
    font-weight: 100;
    color: #0f172a;
    line-height: 1.2;
    display: block;
}

.lb-table-surname {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
}

.lb-badge-disputed {
    background: #fef2f2;
    color: #ef4444;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.lb-badge-verified {
    background: #f0fdf4;
    color: #22c55e;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.lb-action-view {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    border: none;
    transition: all 0.2s;
}

.lb-action-view:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.lb-pagination-alt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.lb-page-link-alt {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: #fff;
    color: #64748b;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    padding: 0 0.5rem;
}

.lb-page-link-alt.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.lb-page-link-alt:hover:not(.active) {
    background: #f8fafc;
}

/* ================= RESULT MANAGEMENT ================= */
.rm-wrapper {
    background-color: #f8fafc;
    min-height: 100vh;
    padding-bottom: 3rem;
}

.rm-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 24px;
    font-weight: 500;
}

.rm-header-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.rm-header-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 32px;
}

.rm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.rm-stat-card {
    background-color: #ffffff;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    border-bottom-right-radius: 60px;
    overflow: hidden;
}

.rm-stat-content {
    padding: 32px 32px 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.rm-stat-number {
    font-size: 52px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
    letter-spacing: -2px;
}

.rm-stat-trend {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.rm-stat-trend.positive {
    color: #84cc16;
}

.rm-stat-title {
    font-size: 15px;
    font-weight: 500;
    color: #94a3b8;
    margin-top: auto;
}

.rm-notch {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 64px;
    height: 64px;
    background-color: #f8fafc;
    border-top-left-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rm-notch::before {
    content: "";
    position: absolute;
    top: -24px;
    right: 0;
    width: 24px;
    height: 24px;
    border-bottom-right-radius: 24px;
    box-shadow: 10px 10px 0 10px #f8fafc;
}

.rm-notch::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -24px;
    width: 24px;
    height: 24px;
    border-bottom-right-radius: 24px;
    box-shadow: 10px 10px 0 10px #f8fafc;
}

.rm-chart-btn {
    background-color: #000;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    margin-right: -4px;
    margin-bottom: -4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.rm-controls {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    align-items: center;
}

.rm-search-wrap {
    flex: 1;
    position: relative;
}

.rm-search-wrap i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
}

.rm-search-input {
    width: 100%;
    padding: 16px 16px 16px 52px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
}

.rm-search-input:focus {
    border-color: #cbd5e1;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.02);
}

.rm-filter-btn {
    padding: 16px 28px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
}

.rm-filter-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.rm-race-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.rm-race-card {
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid #eef2f6;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.rm-race-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.rm-image-wrap {
    padding: 12px;
    height: 220px;
}

.rm-race-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

.rm-card-body {
    padding: 0 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rm-race-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    margin-top: 8px;
}

.rm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.rm-tag {
    padding: 4px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.rm-tag-virtual {
    background: #f0fdf4;
    color: #16a34a;
}

.rm-tag-road {
    background: #f8fafc;
    color: #64748b;
}

.rm-tag-completed {
    background: #f0fdf4;
    color: #16a34a;
}

.rm-tag-regular {
    background: #eff6ff;
    color: #3b82f6;
}

.rm-tag-cycling {
    background: #fff1f2;
    color: #e11d48;
}

.rm-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.rm-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.rm-info-item i {
    font-size: 18px;
    color: #16a34a;
}

.rm-stats-subgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.rm-stat-sublabel {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 8px;
}

.rm-stat-subvalue {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.rm-btn-wrap {
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

.rm-view-btn {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: #f4f7fa;
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}

.rm-view-btn:hover {
    background: #edf2f7;
    color: #000;
}

/* ================= RESULT SHOWN (DETAILS) ================= */
.rs-wrapper {
    background-color: #f8fafc;
    min-height: 100vh;
    padding-bottom: 3rem;
}

.rs-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    background: #fff;
    padding: 6px;
    border-radius: 14px;
    width: fit-content;
    border: 1px solid #eef2f6;
}

.rs-tab {
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    border: none;
    background: transparent;
    transition: all 0.2s;
    cursor: pointer;
}

.rs-tab.active {
    background: #000;
    color: #fff;
}

.rs-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    align-items: center;
}

.rs-filter-input-wrap {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.rs-filter-input-wrap i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.rs-filter-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 14px;
    outline: none;
}

/* Custom Datepicker Overrides */
.flatpickr-calendar {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
}
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange, .flatpickr-day.selected.inRange, .flatpickr-day.startRange.inRange, .flatpickr-day.endRange.inRange, .flatpickr-day.selected:focus, .flatpickr-day.startRange:focus, .flatpickr-day.endRange:focus, .flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover, .flatpickr-day.selected.prevMonthDay, .flatpickr-day.startRange.prevMonthDay, .flatpickr-day.endRange.prevMonthDay, .flatpickr-day.selected.nextMonthDay, .flatpickr-day.startRange.nextMonthDay, .flatpickr-day.endRange.nextMonthDay {
    background: #ff0000 !important;
    border-color: #ff0000 !important;
}
.flatpickr-day.inRange {
    background: rgba(255, 0, 0, 0.15) !important;
    border-color: transparent !important;
    box-shadow: -5px 0 0 rgba(255, 0, 0, 0.15), 5px 0 0 rgba(255, 0, 0, 0.15) !important;
}
.custom-datepicker {
    width: 100%;
    min-height: 42px;
}
.custom-datepicker:focus {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 0 0.25rem rgba(255, 0, 0, 0.25);
}
.custom-datepicker-wrapper i {
    color: #94a3b8;
}

.rs-filter-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
}

.rs-filter-pill i {
    color: #94a3b8;
}

.rs-filter-select {
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    min-width: 180px;
}

.rs-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 4px;
}

.rs-summary-text {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.rs-summary-text span {
    color: #64748b;
    font-weight: 500;
}

.rs-status-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rs-status-btn {
    padding: 8px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.rs-status-btn.inactive {
    background: #fff;
    color: #94a3b8;
    border: 1px solid #eef2f6;
}

.rs-status-btn.active {
    background: #000;
    color: #fff;
}

.rs-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
}

.rs-action-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 20px;
    border-left: 1px solid #e2e8f0;
    padding-left: 20px;
}

.rs-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}

.rs-icon-btn:hover {
    background: #f8fafc;
    color: #000;
}

.rs-table-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.rs-table thead th {
    background: transparent;
    border-bottom: 1px solid #f1f5f9;
    color: #94a3b8;
    font-size: 12px;
    text-transform: capitalize;
    font-weight: 600;
    padding: 16px 12px;
    white-space: nowrap;
}

.rs-table tbody td {
    padding: 16px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #f8fafc;
    font-size: 13px;
    color: #1e293b;
    font-weight: 500;
}

.rs-td-orange {
    color: #f97316 !important;
    font-weight: 700;
}

.rs-td-red {
    color: #ef4444 !important;
    font-weight: 700;
}

.rs-td-bold {
    font-weight: 700;
    color: #000;
}

.rs-td-club {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    max-width: 150px;
}

.rs-td-cat {
    font-size: 11px;
    color: #64748b;
    font-family: monospace;
}

.rs-filter-select {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    min-width: 140px;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.rs-filter-select:focus {
    border-color: #000;
    color: #000;
}

/* Print Media */
@media print {
    .sidebar,
    .dashboard-header,
    .rs-tabs,
    .rs-filters,
    .lb-pagination,
    .rs-action-icons,
    .rs-status-group button:not(.active) {
        display: none !important;
    }

    .main-container {
        margin: 0 !important;
        padding: 0 !important;
    }

    .rs-wrapper {
        background: #fff !important;
    }

    .rs-table-card {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .rs-table tbody td,
    .rs-table thead th {
        padding: 10px 8px !important;
        font-size: 10px !important;
    }
}

/* Square Pagination */
.rs-pagination {
    display: flex;
    gap: 8px;
    align-items: center;
}

.rs-page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #eef2f6;
    background: #fff;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}

.rs-page-link:hover {
    border-color: #cbd5e1;
    color: #000;
}

.rs-page-link.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.rs-page-dots {
    color: #cbd5e1;
    font-weight: 700;
    margin: 0 4px;
}

/* Athlete Table Refinement */
.rs-athlete-table th {
    padding: 20px 12px !important;
}

.rs-athlete-table td {
    padding: 20px 12px !important;
    font-size: 14px !important;
}

.rs-col-in {
    width: 100px;
    color: #fba466;
}

.rs-col-name {
    width: 250px;
}

.rs-col-club {
    min-width: 200px;
}

.rs-col-sx {
    width: 250px;
}

.rs-map-wrap {
    position: relative;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.rs-map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rs-map-zoom {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rs-zoom-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: #f8fafc;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.rs-zoom-btn:hover {
    background: #f1f5f9;
    color: #000;
}

.rs-elevation-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.rs-elevation-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.rs-elevation-graph {
    position: relative;
    height: 200px;
    width: 100%;
}

.rs-graph-label {
    position: absolute;
    bottom: -30px;
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    transform: translateX(-50%);
}

.rs-graph-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rs-marker-tooltip {
    background: #0f172a;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    white-space: nowrap;
}

.rs-marker-dot {
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
}

/* ================= REWARD / REPORT PAGE ================= */
.reward-wrapper {
    background-color: #f8fafc;
    min-height: 100vh;
    padding-bottom: 3rem;
}

.reward-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 10px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 32px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* Generate Report Section */
.report-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    margin-bottom: 32px;
}

.report-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.report-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 32px;
}

.report-filter-label {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    display: block;
}

.report-input-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.report-select,
.report-date-input {
    height: 52px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 14px;
    color: #0f172a;
    width: 100%;
    outline: none;
    appearance: none;
}

.report-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.report-date-wrap {
    position: relative;
    width: 100%;
}

.report-date-wrap i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.report-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.btn-pdf {
    background: #000;
    color: #fff;
    border: none;
    padding: 0 24px;
    height: 52px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s;
}

.btn-pdf:hover {
    opacity: 0.85;
}

.btn-csv {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 0 24px;
    height: 52px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-csv:hover {
    background: #e2e8f0;
    color: #000;
}

/* Charts Section */
.chart-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    height: 100%;
}

.chart-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.chart-subtitle {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 32px;
}

.chart-container {
    height: 240px;
    width: 100%;
    position: relative;
}

/* Recent Reports List */
.recent-reports-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.report-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid #292a2b9f;
}

/* .report-list-item:last-child {
    border-bottom: none;
} */
.report-item-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.report-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.report-item-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.report-item-meta {
    font-size: 12px;
    color: #94a3b8;
}

.report-item-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.report-time {
    font-size: 12px;
    color: #94a3b8;
}

.btn-download {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}

.btn-download:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* reward management  */
/* Reward Table Specifics */
.reward-table-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    margin-bottom: 32px;
}

.reward-table-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 24px;
    padding-left: 8px;
}

.rw-table thead th {
    background: transparent;
    border-bottom: 1px solid #f1f5f9;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    padding: 16px 12px;
}

.rw-table tbody td {
    padding: 16px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #f8fafc;
    font-size: 14px;
    color: #1e293b;
}

/* User Column */
.rw-user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.rw-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Status Dropdown */
.rw-status-select {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    min-width: 130px;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
}

.rw-status-select.processing {
    color: #f97316;
    background-color: #fff7ed;
    border-color: #ffedd5;
}

.rw-status-select.delivered {
    color: #16a34a;
    background-color: #f0fdf4;
    border-color: #dcfce7;
}

/* Status Badges */
.rw-badge {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
}

.rw-badge-shipped {
    background: #eff6ff;
    color: #3b82f6;
}

.rw-badge-processing {
    background: #fff7ed;
    color: #f97316;
}

.rw-badge-pending {
    background: #f1f5f9;
    color: #64748b;
}

.rw-badge-delivered {
    background: #f0fdf4;
    color: #16a34a;
}

/* ================= PROFILE & SETTINGS ================= */
.ps-wrapper {
    background-color: #f8fafc;
    min-height: 100vh;
    padding-bottom: 3rem;
}

.ps-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.ps-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.ps-action-btns {
    display: flex;
    gap: 12px;
}

.ps-btn-cancel {
    padding: 10px 24px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    color: #64748b;
    transition: all 0.2s;
}

.ps-btn-save {
    padding: 10px 24px;
    border-radius: 10px;
    background: #000;
    color: #fff;
    border: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.ps-btn-save:hover {
    opacity: 0.85;
}

.ps-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    background: #fff;
    padding: 6px;
    border-radius: 14px;
    width: fit-content;
    border: 1px solid #eef2f6;
}

.ps-tab {
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    border: none;
    background: transparent;
    cursor: pointer;
}

.ps-tab.active {
    background: #000;
    color: #fff;
}

.ps-card {
    background: #fff;
    border-radius: 20px;
    padding: 19px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.ps-card-header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.ps-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.ps-sub-card {
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 24px;
}

.ps-profile-box {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ps-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.ps-user-name {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.ps-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #f0fdf4;
    color: #16a34a;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.ps-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #16a34a;
}

.ps-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.ps-info-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ps-info-label {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
}

.ps-info-value {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 500;
}

.ps-btn-ghost {
    padding: 8px 16px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.ps-btn-ghost:hover {
    background: #e2e8f0;
}

.ps-back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.ps-back-btn i {
    font-size: 20px;
}

.ps-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 32px;
}

.ps-form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ps-form-group.full-width {
    grid-column: span 2;
}

.ps-label {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

.ps-input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-size: 15px;
    font-weight: 500;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s;
}

.ps-input:focus {
    border-color: #000;
}

.ps-input-verified {
    background-color: #f0fdf4;
    border-color: #dcfce7;
}

/* ===== EVENT DETAILS MODAL ===== */
.custom-modal .modal-content {
    border-radius: 28px;
    border: none;
    padding: 10px;
}

.custom-modal .modal-header {
    border-bottom: none;
    padding: 24px 24px 10px;
}

.custom-modal .modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.custom-modal .modal-body {
    padding: 0 24px 24px;
}

.modal-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== ADD PARTICIPANT SUB-MODAL ===== */
#addParticipantModal {
    z-index: 1060;
}
#addParticipantModal + .modal-backdrop {
    z-index: 1055;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}
#addParticipantModal .modal-content {
    border-radius: 24px;
    border: none;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}
#addParticipantModal .modal-header {
    border-bottom: none;
    padding: 24px 28px 8px;
}
#addParticipantModal .modal-body {
    padding: 8px 28px 12px;
}
#addParticipantModal .modal-footer {
    padding: 8px 28px 24px;
}
#addParticipantModal .invoice-input {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.9rem;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}
#addParticipantModal .invoice-input:focus {
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
    background: #fff;
}

.badge-active {
    background: #ecfdf5;
    color: #10b981;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
}

.info-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px;
    height: 100%;
}

.info-card-label {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 4px;
}

.info-card-value {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.participation-progress {
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    margin: 12px 0;
}

.participation-progress-fill {
    height: 100%;
    background: #0f172a;
    border-radius: 10px;
}

.section-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.invoice-status-bar {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.performance-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}

.performance-value {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.performance-label {
    font-size: 0.75rem;
    color: #94a3b8;
}

.btn-reminder {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    width: 100%;
    padding: 10px;
    font-weight: 500;
    font-size: 0.85rem;
    color: #1e293b;
    background: #fff;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}

.btn-reminder:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.footer-actions {
    display: flex;
    gap: 10px;
}

.btn-action-outline {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 8px;
    font-weight: 500;
    font-size: 0.8rem;
    background: #fff;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-export {
    color: #86efac;
    border: 1px solid #f1f5f9;
    background: #fff;
}

.btn-reject {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    flex: 1;
    border-radius: 10px;
    padding: 10px 8px;
    font-weight: 500;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-close-custom {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #94a3b8;
    padding: 0;
}

/* ===== INVOICE MODAL ===== */
.invoice-summary-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.invoice-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
    display: block;
}

.invoice-input {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.9rem;
    width: 100%;
    color: #1e293b;
    outline: none;
    transition: all 0.2s;
}

.invoice-input:focus {
    border-color: #cbd5e1;
    background: #fff;
}

.invoice-input::placeholder {
    color: #94a3b8;
}

.invoice-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.line-items-box {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
}

.line-item-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.line-item-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1e293b;
}

.line-item-price {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1e293b;
}

.line-item-subtext {
    font-size: 0.8rem;
    color: #94a3b8;
}

.total-row {
    border-top: 1px solid #f1f5f9;
    margin-top: 16px;
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-weight: 700;
    font-size: 1rem;
    color: #0f172a;
}

.total-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: #0f172a;
}

.btn-invoice-download {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #1e293b;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-invoice-download:hover {
    background: #f8fafc;
}

.btn-invoice-send {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.btn-invoice-send:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

/* ===== CREATE EVENT MODAL ===== */

.options-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.option-item:not(:last-child) {
    margin-bottom: 20px;
}

.option-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}

.option-desc {
    font-size: 0.8rem;
    color: #64748b;
}

/* Custom Switch Styling */
.form-switch .form-check-input {
    width: 44px;
    height: 24px;
    background-color: #e2e8f0;
    border: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23fff'/%3E%3C/svg%3E");
    transition:
        background-position 0.15s ease-in-out,
        background-color 0.15s ease-in-out;
}

.form-switch .form-check-input:checked {
    background-color: #000;
    background-position: right center;
}

.form-switch .form-check-input:focus {
    box-shadow: none;
    border: none;
}

.btn-cancel {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: #f1f5f9;
}

.btn-create-event {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-create-event:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

/* ===== BULK REGISTRATION MODAL ===== */
.method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.method-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.method-card.active {
    background: #000;
    border-color: #000;
    color: #fff;
}

.method-card i {
    font-size: 1.25rem;
    display: block;
    margin-bottom: 8px;
}

.method-card span {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Format option pills for CSV/Excel selector */
.format-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
}

.format-option i {
    font-size: 1.1rem;
}

.format-option.active {
    background: #000;
    border-color: #000;
    color: #fff;
}

.format-option:hover:not(.active) {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.drop-zone {
    border: 1px dashed #e2e8f0;
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 24px;
}

.drop-zone i {
    font-size: 2rem;
    color: #94a3b8;
    margin-bottom: 12px;
}

.drop-zone-text {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 4px;
}

.drop-zone-subtext {
    font-size: 0.8rem;
    color: #94a3b8;
}

.template-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    display: block;
    margin-bottom: 24px;
}

.btn-process {
    background: black;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    flex: 1;
}

.btn-process:hover {
    background:#a2a7b0;
}

/* ===== MANUAL PARTICIPANT LIST ===== */
.participant-list-item {
    transition: background 0.15s;
}
.participant-list-item:hover {
    background: #f8fafc !important;
}
.remove-participant-btn:hover {
    color: #dc2626 !important;
    background: #fef2f2 !important;
    border-radius: 6px;
}

/* ================= EMPLOYEE PARTICIPANT CARD ================= */
.participant-card {
    background: #fff;
    border: 1.5px solid #f1f5f9;
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.participant-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.participant-image-wrapper {
    width: 100%;
    height: 190px;
    overflow: hidden;
}

.participant-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.participant-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.participant-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.participant-card-info h6 {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 2px;
    color: #0f172a;
}

.participant-card-email {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 0;
}

.participant-status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.participant-status-badge.active {
    background: #f0fdf4;
    color: #22c55e;
}

.participant-status-badge.active::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
}

.participant-card-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 1.25rem;
    margin-bottom: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-item-label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.detail-item-value {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.participant-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.participant-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 8px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #f1f5f9;
}

.participant-action-btn.view {
    background: #f8fafc;
    color: #475569;
}

.participant-action-btn.edit {
    background: #f0fdf4;
    color: #16a34a;
}

.participant-action-btn.send {
    background: #f5f3ff;
    color: #6366f1;
}

.participant-action-btn:hover {
    transform: translateY(-1px);
    filter: brightness(0.95);
}

@media (max-width: 576px) {
    .participant-card-actions {
        flex-direction: column;
    }
}

/* ================= RESULT UPLOAD BOX ================= */
.upload-results-box {
    border: 1.5px solid #f1f5f9;
    border-radius: 18px;
    padding: 3.5rem 1.5rem;
    text-align: center;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-results-box:hover {
    border-color: #e2e8f0;
    background: #f8fafc;
    transform: translateY(-2px);
}

.upload-icon-wrapper {
    width: 54px;
    height: 54px;
    background: #f8fafc;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #94a3b8;
    border: 1px solid #f1f5f9;
}

.upload-icon-wrapper i {
    font-size: 1.75rem;
}

.upload-results-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #0f172a;
    margin-bottom: 4px;
}

.upload-results-subtitle {
    font-size: 13px;
    color: #94a3b8;
    max-width: 320px;
}

/* ================= UTILITIES ================= */
.transition-all {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-2px);
}

/* ================= INVOICE TABLE ================= */
.custom-table {
    border-collapse: separate;
    border-spacing: 0 0;
}

.custom-table thead th {
    border-bottom: 1px solid #f1f5f9;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    padding: 1.25rem 1rem;
    background: transparent;
}

.custom-table tbody tr {
    background: #fff;
    transition: background 0.2s;
}

.custom-table tbody tr:hover {
    background: #f8fafc;
}

.custom-table tbody td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #f8fafc;
    font-size: 14px;
    color: #475569;
    vertical-align: middle;
}

.custom-table tbody td:first-child {
    font-weight: 700;
    color: #1e293b;
}

/* Status Badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-badge.paid {
    background: #f0fdf4;
    color: #22c55e;
}

.status-badge.pending {
    background: #f1f5f9;
    color: #64748b;
}

/* Action Button */
.btn-view-action {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-view-action:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* Pagination */
.custom-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.pagination-btn.active {
    background: #000;
    border-color: #000;
    color: #fff;
}

.pagination-btn:hover:not(.active) {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ================= PAYMENT GATEWAY CARDS ================= */
.gateway-card {
    background: #fff;
    border: 1.5px solid #f1f5f9;
    border-radius: 1.25rem;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.gateway-card:hover {
    border-color: #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.gateway-card.configured {
    border-color: #dcfce7;
    /* Light green border */
    background: #ffffff;
}

.gateway-icon {
    width: 52px;
    height: 52px;
    background: #f8fafc;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #64748b;
    border: 1px solid #f1f5f9;
}

.gateway-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 100px;
    font-weight: 600;
}

.gateway-badge.success {
    background: #f0fdf4;
    color: #16a34a;
}

.gateway-badge.secondary {
    background: #f1f5f9;
    color: #64748b;
}

.gateway-tag {
    background: #f8fafc;
    color: #64748b;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid #f1f5f9;
}

.btn-gateway-action {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    color: #1e293b;
    width: 100%;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
    text-decoration: none !important;
}

.btn-gateway-action:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #000;
}

/* ================= PAYMENT MODAL ================= */
.payment-modal .modal-content {
    border-radius: 24px;
    border: none;
    padding: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.payment-modal .modal-header {
    border: none;
    padding: 1.5rem 1.5rem 0.5rem;
}

.payment-modal .modal-body {
    padding: 0.5rem 1.5rem 1.5rem;
}

.payment-modal .modal-footer {
    border: none;
    padding: 0 1.5rem 1.5rem;
}

.payment-modal .form-label {
    font-weight: 600;
    color: #334155;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.payment-modal .form-control {
    border-radius: 10px;
    padding: 12px 16px;
    border: 1.5px solid #f1f5f9;
    background: #fcfcfc;
    font-size: 0.9rem;
}

.payment-modal .form-control:focus {
    border-color: #e2e8f0;
    background: #fff;
    box-shadow: none;
}

/* Method Selection */
.payment-method-option {
    border: 1.5px solid #f1f5f9;
    border-radius: 14px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.payment-method-option:hover {
    border-color: #e2e8f0;
    background: #fbfcfe;
}

.payment-method-option.active {
    border-color: #0ea5e9;
    background-color: #f0f9ff;
    box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.1);
}

.payment-method-option .radio-circle {
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    margin-right: 16px;
    position: relative;
    flex-shrink: 0;
}

.payment-method-option.active .radio-circle {
    border-color: #0ea5e9;
}

.payment-method-option.active .radio-circle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #0ea5e9;
    border-radius: 50%;
}

.method-icon-box {
    width: 44px;
    height: 44px;
    background: #f8fafc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 1.25rem;
    color: #64748b;
    border: 1px solid #f1f5f9;
}

.payment-method-option.active .method-icon-box {
    background: #fff;
    border-color: #bae6fd;
}

/* Success State */
.success-check-wrapper {
    width: 64px;
    height: 64px;
    background: #f0fdf4;
    color: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

/* Custom Datatables Pagination matching design */
.dataTables_wrapper .pagination {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 0;
}
.dataTables_wrapper .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #6c757d;
    background-color: #fff;
    font-weight: 500;
    padding: 0;
    transition: all 0.2s ease;
    box-shadow: none;
}
.dataTables_wrapper .page-item.active .page-link {
    background-color: #000;
    border-color: #000;
    color: #fff;
}
.dataTables_wrapper .page-item.disabled .page-link {
    background-color: #f8f9fc;
    color: #adb5bd;
    pointer-events: none;
}
.dataTables_wrapper .page-item:not(.active):not(.disabled) .page-link:hover {
    background-color: #f8f9fc;
    color: #000;
}

/* Location Management css */
.location-tabs {
    border: none;
    gap: 12px;
}

.location-tabs .nav-item {
    margin-bottom: 0;
}

.location-tabs .nav-link {
    border: none;
    border-radius: 12px;

    padding: 12px 22px;

    color: #6c757d;

    background: #fff;

    font-size: 15px;

    transition: all 0.25s ease;

    display: flex;

    align-items: center;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Hover */
.location-tabs .nav-link:hover {
    background: #f8f9fa;

    color: #000;

    transform: translateY(-2px);

    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

/* Active */
.location-tabs .nav-link.active {
    background: #212529;

    color: #fff;

    box-shadow: 0 10px 22px rgba(33, 37, 41, 0.25);
}

/* Active hover */
.location-tabs .nav-link.active:hover {
    background: #000;

    color: #fff;
}

/* Icon */
.location-tabs .nav-link i {
    font-size: 16px;
}
