/* Theme Overrides - Removes any remaining purple colors */

/* Fixed navbar spacing */
body {
    padding-top: 48px; /* Balanced height for the navbar padding */
}

/* Additional space for pages with important content at the top */
.page-with-header-space {
    margin-top: 12px !important; /* Moderate space beyond the navbar padding */
}

/* Apply header spacing to specific pages */
.chat-container,
.competition-header,
.profile-container,
.edit-profile-container,
.competition-list-header {
    margin-top: 12px !important; /* Moderate space to prevent header overlap */
}

/* Override all links to use theme color */
a, a:link, a:visited {
    color: var(--bs-primary) !important;
}

a:hover, a:focus {
    color: rgba(var(--bs-primary-rgb), 0.85) !important;
}

/* Private link and invites */
.private-link, .badge.bg-purple, .badge.bg-info {
    background-color: rgba(var(--bs-primary-rgb), 0.15) !important;
    color: #ffffff !important;
    border: 1px solid var(--bs-primary);
}

.invite-code, .private-link, .invite-link, .private-link-label {
    color: #ffffff !important;
}

/* Private link label text (text before the actual link) */
.private-link-label, .invite-code-label {
    color: #ffffff !important;
    font-weight: 500;
}

/* Leaderboard player names */
.player-name a, .venue-name a, .player-username a {
    color: var(--bs-primary) !important;
}

/* Unread chat names */
.unread-chat .player-name {
    color: #ffffff !important;
}

/* "+" icon in create competition should be white */
.create-competition-card i, 
.fa-plus, 
.fa-plus-circle,
.fa-circle-plus,
.bi-plus,
.bi-plus-circle,
.bi-plus-circle-fill,
svg.feather-plus-circle,
svg.feather-plus {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

/* Fix all purple SVG icons and paths */
svg path[fill="#7c3aed"],
svg path[stroke="#7c3aed"],
svg circle[fill="#7c3aed"],
svg circle[stroke="#7c3aed"],
svg rect[fill="#7c3aed"],
svg rect[stroke="#7c3aed"] {
    fill: var(--bs-primary) !important;
    stroke: var(--bs-primary) !important;
}

/* Admin dashboard panel text */
.sidebar .nav-link {
    color: var(--bs-light) !important;
}

.sidebar .nav-link:hover {
    color: var(--bs-primary) !important;
    background-color: rgba(var(--bs-primary-rgb), 0.1);
}

.sidebar .nav-link.active {
    color: var(--bs-primary) !important;
    background-color: rgba(var(--bs-primary-rgb), 0.15);
}

/* Button styling with white hover stroke */
.btn:not(.btn-link):focus, .btn:not(.btn-link):hover, a:focus, a:hover, 
.btn-outline-secondary:focus, .btn-outline-primary:focus,
.btn-outline-secondary:hover, .btn-outline-primary:hover {
    box-shadow: none !important;
    outline: none !important;
    border-color: #ffffff !important;
    background-color: var(--bs-primary) !important;
    color: #ffffff !important;
}

/* Danger button styles */
.btn-outline-danger {
    border-color: var(--bs-danger) !important;
    color: var(--bs-danger) !important;
}

.btn-outline-danger:focus, .btn-outline-danger:hover {
    background-color: var(--bs-danger) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

/* Success button styles */
.btn-success {
    background-color: #1e5631 !important;
    border-color: #1e5631 !important;
    color: white !important;
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--bs-secondary);
    border-color: #ffffff !important;
    opacity: 0.9;
}

/* Make primary buttons have bright white text always */
.btn-primary {
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Make chat button text white on hover and use theme background */
.btn-primary:hover, .btn-primary:focus {
    color: #ffffff !important;
    background-color: var(--bs-dark) !important;
    border-color: var(--bs-primary) !important;
}

/* Make rounds button text white on hover */
.btn:hover, .btn:focus {
    color: #ffffff !important;
}

/* Remove purple highlight on button active/focus states - EXCLUDE btn-link */
.btn:not(.btn-link):active, .btn.active:not(.btn-link), .btn-check:checked + .btn:not(.btn-link) {
    background-color: var(--bs-dark) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

/* Fix nav tabs text color - selected is white, non-selected is theme color */
.nav-tabs .nav-link {
    color: rgba(var(--bs-primary-rgb), 0.85) !important; /* Brighter theme color for non-selected tabs */
}

.nav-tabs .nav-link:hover {
    color: #ffffff !important; /* White on hover */
}

.nav-tabs .nav-link.active {
    color: #ffffff !important;  /* White for selected tab */
}

/* Tournament buttons */
.tournament-btn {
    border-color: rgba(var(--bs-primary-rgb), 0.85) !important;
}

/* Ensure all button icons have consistent styling */
.btn-outline-primary [data-feather] {
    color: #9ca3af;
    stroke: #9ca3af;
}

.btn-outline-primary:hover [data-feather], 
.btn-outline-primary:focus [data-feather] {
    color: var(--bs-light);
    stroke: var(--bs-light);
}

/* Chat Badge Styling */
.chat-badge.show {
    opacity: 1;
    color: #ffffff !important;
    font-weight: bold;
}

/* Accordion Button Styling */
.accordion-button {
    color: var(--bs-light) !important;
    background-color: rgba(var(--bs-primary-rgb), 0.15) !important;
    border: none !important;
    font-weight: 500 !important;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(var(--bs-primary-rgb), 0.25) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

.accordion-button:focus {
    box-shadow: none !important;
    border-color: var(--bs-border-color) !important;
}

.accordion-button::after {
    filter: brightness(2);
}

/* Team members and match links */
.team-members a, .match-link, .venue-link {
    color: var(--bs-primary) !important;
}

/* Make venue text smaller in upcoming/completed matches */
.venue-text, .venue-info, .venue-info button.venue-link {
    font-size: 0.75rem !important;
    color: var(--bs-primary) !important;
}

.venue-link:hover, .venue-link:focus {
    color: #ffffff !important;
    border: none !important;
    outline: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

/* Fix for any badges */
.badge-primary, .badge-info, .badge-purple {
    background-color: var(--bs-primary) !important;
    color: var(--bs-darker) !important;
}

/* Make completed badge darker green */
.badge.bg-success, .badge-success {
    background-color: #1a5928 !important;
}

/* Make upcoming badge darker */
.badge.bg-warning, .badge-warning {
    background-color: #9c6101 !important;
}

/* Progress percentage colors */
.progress-percentage[data-value="0"], 
.progress-percentage[data-value="1"],
.progress-percentage[data-value="2"],
.progress-percentage[data-value="3"],
.progress-percentage[data-value="4"],
.progress-percentage[data-value="5"],
.progress-percentage[data-value="6"],
.progress-percentage[data-value="7"],
.progress-percentage[data-value="8"],
.progress-percentage[data-value="9"],
.progress-percentage[data-value="10"],
.progress-percentage[data-value="11"],
.progress-percentage[data-value="12"],
.progress-percentage[data-value="13"],
.progress-percentage[data-value="14"],
.progress-percentage[data-value="15"],
.progress-percentage[data-value="16"],
.progress-percentage[data-value="17"],
.progress-percentage[data-value="18"],
.progress-percentage[data-value="19"],
.progress-percentage[data-value="20"],
.progress-percentage[data-value="21"],
.progress-percentage[data-value="22"],
.progress-percentage[data-value="23"],
.progress-percentage[data-value="24"],
.progress-percentage[data-value="25"] {
    color: #dc3545 !important; /* Red */
}

.progress-percentage[data-value="26"],
.progress-percentage[data-value="27"],
.progress-percentage[data-value="28"],
.progress-percentage[data-value="29"],
.progress-percentage[data-value="30"],
.progress-percentage[data-value="31"],
.progress-percentage[data-value="32"],
.progress-percentage[data-value="33"],
.progress-percentage[data-value="34"],
.progress-percentage[data-value="35"],
.progress-percentage[data-value="36"],
.progress-percentage[data-value="37"],
.progress-percentage[data-value="38"],
.progress-percentage[data-value="39"],
.progress-percentage[data-value="40"],
.progress-percentage[data-value="41"],
.progress-percentage[data-value="42"],
.progress-percentage[data-value="43"],
.progress-percentage[data-value="44"],
.progress-percentage[data-value="45"],
.progress-percentage[data-value="46"],
.progress-percentage[data-value="47"],
.progress-percentage[data-value="48"],
.progress-percentage[data-value="49"],
.progress-percentage[data-value="50"] {
    color: #fd7e14 !important; /* Orange */
}

.progress-percentage[data-value="51"],
.progress-percentage[data-value="52"],
.progress-percentage[data-value="53"],
.progress-percentage[data-value="54"],
.progress-percentage[data-value="55"],
.progress-percentage[data-value="56"],
.progress-percentage[data-value="57"],
.progress-percentage[data-value="58"],
.progress-percentage[data-value="59"],
.progress-percentage[data-value="60"],
.progress-percentage[data-value="61"],
.progress-percentage[data-value="62"],
.progress-percentage[data-value="63"],
.progress-percentage[data-value="64"],
.progress-percentage[data-value="65"],
.progress-percentage[data-value="66"],
.progress-percentage[data-value="67"],
.progress-percentage[data-value="68"],
.progress-percentage[data-value="69"],
.progress-percentage[data-value="70"],
.progress-percentage[data-value="71"],
.progress-percentage[data-value="72"],
.progress-percentage[data-value="73"],
.progress-percentage[data-value="74"],
.progress-percentage[data-value="75"] {
    color: #ffc107 !important; /* Yellow */
}

.progress-percentage[data-value="76"],
.progress-percentage[data-value="77"],
.progress-percentage[data-value="78"],
.progress-percentage[data-value="79"],
.progress-percentage[data-value="80"],
.progress-percentage[data-value="81"],
.progress-percentage[data-value="82"],
.progress-percentage[data-value="83"],
.progress-percentage[data-value="84"],
.progress-percentage[data-value="85"],
.progress-percentage[data-value="86"],
.progress-percentage[data-value="87"],
.progress-percentage[data-value="88"],
.progress-percentage[data-value="89"],
.progress-percentage[data-value="90"],
.progress-percentage[data-value="91"],
.progress-percentage[data-value="92"],
.progress-percentage[data-value="93"],
.progress-percentage[data-value="94"],
.progress-percentage[data-value="95"],
.progress-percentage[data-value="96"],
.progress-percentage[data-value="97"],
.progress-percentage[data-value="98"],
.progress-percentage[data-value="99"],
.progress-percentage[data-value="100"] {
    color: #28a745 !important; /* Green */
}

/* Generic overrides for any potential remaining purple elements */
.text-purple, .text-primary {
    color: var(--bs-primary) !important;
}

.bg-purple, .bg-primary {
    background-color: var(--bs-primary) !important;
}

.border-purple, .border-primary {
    border-color: var(--bs-primary) !important;
}

/* Remove all focus outlines */
*:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* Themed Switches */
.form-check-input.theme-switch {
    background-color: var(--bs-tertiary-bg);
    border-color: var(--bs-border-color);
}

.form-check-input.theme-switch:checked {
    background-color: #3a9e3f; /* Match the theme's primary button color */
    border-color: #3a9e3f;
}

.form-check-input.theme-switch:focus {
    border-color: #3a9e3f;
    box-shadow: 0 0 0 0.25rem rgba(58, 158, 63, 0.25);
}

.dark-mode .form-check-input.theme-switch:checked {
    background-color: #4CAF50; /* Slightly brighter green in dark mode */
    border-color: #4CAF50;
}

/* Checkbox styling for better visibility */
.form-check-input {
    border: 2px solid #ffffff !important;
    background-color: transparent !important;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.4) !important;
}

/* Specifically target checkboxes in the availability modal */
#availabilityModal .form-check-input {
    border: 2.5px solid rgba(255, 255, 255, 0.85) !important;
    background-color: rgba(0, 0, 0, 0.2) !important;
    margin-right: 8px;
}

#availabilityModal .form-check-input:checked {
    background-color: var(--bs-primary) !important;
    border-color: #ffffff !important;
}

/* Granular email options styling */
#granular-email-options {
    transition: opacity 0.3s ease, border-color 0.3s ease;
    border-color: #dee2e6;
}

.dark-mode #granular-email-options {
    border-color: #444;
}

#granular-email-options.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Mobile nav active item */
.mobile-nav-item.active {
    color: var(--bs-primary) !important;
}

/* Edit profile and logout buttons should not have icons, only text and match styling */
.profile-header .edit-profile,
.profile-header .logout-btn,
.nav-item .logout-btn {
    padding: 0.375rem 0.75rem !important;
    box-shadow: none !important;
    border-radius: 0.25rem !important;
    margin-right: 0.5rem !important;
    display: inline-flex !important;
    align-items: center !important;
    font-weight: 500 !important;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.75) !important;
    background-color: transparent !important;
    color: #ffffff !important;
}

.profile-header .edit-profile:hover,
.profile-header .logout-btn:hover,
.nav-item .logout-btn:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.15) !important;
}

.profile-header .edit-profile i,
.profile-header .logout-btn i,
.nav-item .logout-btn i {
    display: none !important;
}

/* Login button should match register button in layout and colors */
.btn-login,
.navbar .login-btn, 
a.login-btn {
    color: #ffffff !important;
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    font-weight: 500 !important;
    padding: 0.375rem 0.75rem !important;
}

/* Container title background colors should match FAQ page styling, but be slightly lighter */
.tab-pane .card-header, .card-header {
    background-color: rgba(var(--bs-primary-rgb), 0.18) !important;
    color: var(--bs-light) !important;
    border-bottom: 1px solid rgba(var(--bs-primary-rgb), 0.25) !important;
}

/* Styles for invitation cards */
.list-group-item {
    border-color: rgba(var(--bs-primary-rgb), 0.1) !important;
    background-color: var(--bs-card-bg) !important;
}

/* Invitation cards */
.list-group-item p.text-muted {
    margin-bottom: 0.25rem !important;
    font-size: 0.85rem !important;
}

.list-group-item h6 {
    font-weight: 500 !important;
    color: #ffffff !important;
}

/* COMPLETELY REVISED TABLE CONTAINER - ULTIMATE FIX */
.table-container {
    /* Basic positioning */
    position: relative !important;
    display: block !important;
    
    /* Visual styling */
    background: var(--bs-card-bg) !important;
    border-radius: 0.75rem !important;
    border: 1px solid var(--bs-border-color) !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
    
    /* Size and spacing */
    width: 100% !important;
    padding: 0 !important;
    margin-bottom: 1rem !important;
    
    /* Critical scroll behavior */
    overflow-x: auto !important;
    overflow-y: auto !important;
    
    /* Smoother scrolling on mobile */
    -webkit-overflow-scrolling: touch !important;
    
    /* Force hardware acceleration across browsers */
    transform: translate3d(0, 0, 0) !important;
    -webkit-transform: translate3d(0, 0, 0) !important;
    -moz-transform: translate3d(0, 0, 0) !important;
    -ms-transform: translate3d(0, 0, 0) !important;
    
    /* Additional rendering hints */
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    will-change: transform, scroll-position !important;
    
    /* Ensure proper stacking context */
    z-index: 0 !important;
    isolation: isolate !important;
    
    /* Create a new formatting context - more compatible version */
    contain: content !important;
}

/* Leaderboard table container height */
.table-container.full-height {
    height: calc(100vh - 160px) !important; /* Balanced height with moderate page headspace */
    max-height: 825px !important; /* Balanced maximum height */
}

/* Adjust table container height for mobile */
@media (max-width: 767.98px) {
    .table-container.full-height {
        height: calc(100vh - 120px) !important; /* Balanced height with moderate page headspace */
        max-height: 625px !important; /* Balanced maximum height */
    }
}

/* Tables should have the same design as the FAQ page tables */
.table, .table thead, .table tbody, .table tr, 
.table th, .table td, .table-responsive {
    background-color: var(--bs-card-bg) !important;
}

/* FAQ-style tables with better styling */
.faq-table,
.table.faq-style,
.leaderboard-table,
.competition-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
    margin-bottom: 1.5rem !important;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.25) !important;
    border-radius: 0.5rem !important;
    overflow: hidden !important;
}

/* Ensure table cells have proper padding, alignment and borders */
.table th, .table td {
    padding: 0.75rem !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    border-right: 1px solid var(--bs-border-color) !important;
}

/* Remove right border from last cells */
.table th:last-child, .table td:last-child {
    border-right: none !important;
}

/* Make sure the background color of table cells stays on hover */
.table-hover tbody tr:hover .sticky-col {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
}

/* Table container enhancements */
.table-container {
    position: relative !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    background: var(--bs-card-bg) !important;
    border-radius: 0.75rem !important;
    border: 1px solid var(--bs-border-color) !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Table scrollbar styling */
.table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: var(--bs-card-bg);
}

.table-container::-webkit-scrollbar-thumb {
    background: var(--bs-primary);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: var(--bs-primary-dark, #0056b3);
}

/* Firefox scrollbar */
.table-container {
    scrollbar-width: thin;
    scrollbar-color: var(--bs-primary) var(--bs-card-bg);
}

/* Rounded table corners */
.table {
    border-radius: 0.75rem;
    overflow: hidden;
    border-collapse: separate;
}

/* Apply rounded corners to first/last header cells */
.table thead th:first-child {
    border-top-left-radius: 0.75rem;
}

.table thead th:last-child {
    border-top-right-radius: 0.75rem;
}

/* Apply rounded corners to last row's first/last cells */
.table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 0.75rem;
}

.table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 0.75rem;
}

/* STICKY COLUMNS - ENHANCED VERSION */

/* Basic sticky column setup */
.sticky-col {
    position: sticky !important;
    background-color: var(--bs-card-bg) !important;
    z-index: 1 !important;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.15) !important;
}

/* Rank column - first sticky column */
.rank-col {
    left: 0 !important;
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    z-index: 2 !important;
    text-align: center !important;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.15) !important;
}

/* Name column - second sticky column */
.name-col {
    left: 60px !important;
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
    z-index: 1 !important;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.15) !important;
}

/* Header sticky positioning - crucial for proper stacking */
thead th.sticky-col {
    top: 0 !important;
    z-index: 3 !important;
}

thead th.rank-col {
    z-index: 4 !important;
}

/* Hover effects */
.table-hover tbody tr:hover td.sticky-col {
    background-color: rgba(var(--bs-primary-rgb), 0.15) !important;
}

/* Make container position relative to support sticky positioning */
.leaderboard-wrapper {
    position: relative !important;
    overflow: hidden !important; /* Ensure no overflow outside container */
}

/* Special case for leaderboard table - ensure proper nesting */
.leaderboard-table .sticky-col {
    background-color: var(--bs-card-bg) !important; /* Ensure proper background color */
}

/* Handle intersections properly */
.leaderboard-table thead th.sticky-col {
    background-color: var(--bs-card-bg) !important;
    border-bottom: 1px solid var(--bs-border-color) !important;
    border-right: 1px solid var(--bs-border-color) !important;
}

/* Mobile optimization */
@media (max-width: 767.98px) {
    .rank-col {
        width: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
    }
    
    .name-col {
        left: 40px !important;
        width: 140px !important;
        min-width: 140px !important;
        max-width: 140px !important;
    }
}

/* Correct hover effect for sticky columns */
.table-hover tbody tr:hover td {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important; 
}

.table-hover tbody tr:hover td.sticky-col {
    background-color: rgba(var(--bs-primary-rgb), 0.15) !important;
}

/* Card styling for leaderboards and competition views */
.card .card-header {
    background-color: rgba(var(--bs-primary-rgb), 0.18);
    border-bottom: 1px solid rgba(var(--bs-primary-rgb), 0.25);
}

.no-border {
    border: none !important;
}

/* Premium Styled Badge Styling */
.badge.badge-host {
    background: linear-gradient(135deg, #d4af37 0%, #996515 100%);
    color: #111;
    border: 1px solid rgba(150, 120, 0, 0.7);
    text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    padding: 0.35em 0.65em;
    width: 62px;
    display: inline-block;
    text-align: center;
}

.badge.badge-member {
    background: linear-gradient(135deg, #c0c0c0 0%, #7d8396 100%);
    color: #111;
    border: 1px solid rgba(120, 120, 120, 0.7);
    text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    padding: 0.35em 0.65em;
    width: 62px;
    display: inline-block;
    text-align: center;
}

.badge.badge-folder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: 1px solid rgba(102, 126, 234, 0.7);
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    padding: 0.35em 0.65em;
    width: 62px;
    display: inline-block;
    text-align: center;
}

.badge.badge-spectator {
    background: linear-gradient(135deg, #cd7f32 0%, #8b5a2b 100%);
    color: #111;
    border: 1px solid rgba(139, 90, 43, 0.7);
    text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Badge positioning in competition cards */
.competition-card .card-body {
    position: relative;
    padding-bottom: 2rem;
}

.competition-card .badge-container {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
}

/* Spectator card - slightly lighter background */
.competition-card.spectator-card {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

/* Folder card styling - must override competition-card */
.folder-card {
    cursor: pointer;
}

.folder-card .card.folder-card-inner.competition-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: rgba(140, 140, 140, 0.5) !important;
    background-color: rgba(140, 140, 140, 0.5) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    overflow: hidden !important;
}

.folder-card:hover .folder-card-inner {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Competition Stats Display - display user name on left side and stats number on right side */
.stats-table {
    width: 100%;
}

.stats-table tr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(var(--bs-primary-rgb), 0.1);
}

.stats-table tr:last-child {
    border-bottom: none;
}

.stats-table td:first-child {
    color: var(--bs-light) !important;
    font-weight: 500 !important;
    text-align: left;
    padding-right: 10px;
}

.stats-table td:last-child {
    color: var(--bs-light) !important;
    font-family: 'Inter', sans-serif;
    font-weight: 600 !important;
    text-align: right;
    flex-shrink: 0;
}

/* Email Notification Types text needs to be more readable against its background */
#granular-email-options .form-label {
    color: var(--bs-light) !important;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Stats Card - 3 Column Layout */
.stats-card {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    border-radius: 8px;
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.2);
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: rgba(var(--bs-primary-rgb), 0.15);
}

.stats-card-title {
    font-size: 0.875rem;
    color: var(--bs-body-color);
    margin-bottom: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.stats-card-name {
    font-weight: 500;
    color: var(--bs-light);
    font-size: 0.95rem;
}

.stats-card-value {
    font-weight: 700;
    color: var(--bs-light);
    font-size: 1.5rem;
}

/* Mobile stats styling */
.stats-mobile-value {
    color: var(--bs-light) !important;
    font-family: 'Inter', sans-serif;
    font-weight: 600 !important;
}

/* Subtle Plus Button Styling */
.create-competition-card .plus-icon {
    color: var(--bs-light);
    font-size: 2rem;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.create-competition-card:hover .plus-icon {
    opacity: 1;
    transform: scale(1.1);
}