@font-face {
    font-family: 'Cantabile';
    src:  url('/assets/fonts/Cantabile.ttf.woff') format('woff'),
    url('/assets/fonts/Cantabile.ttf.svg#Cantabile') format('svg'),
    url('/assets/fonts/Cantabile.ttf.eot'),
    url('/assets/fonts/Cantabile.eot?#iefix') format('embedded-opentype');
    font-weight: normal;
    font-style: normal;
}

body{
    font-family: "Cantabile";
    font-style: normal;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 800;
}

main {
    flex: 1 0 auto;
}

.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}

.b-example-divider {
    width: 100%;
    height: 3rem;
    background-color: rgba(0, 0, 0, .1);
    border: solid rgba(0, 0, 0, .15);
    border-width: 1px 0;
    box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

.b-example-vr {
    flex-shrink: 0;
    width: 1.5rem;
    height: 100vh;
}

.bi {
    vertical-align: -.125em;
    fill: currentColor;
}

.nav-scroller {
    position: relative;
    z-index: 2;
    height: 2.75rem;
    overflow-y: hidden;
}

.nav-scroller .nav {
    display: flex;
    flex-wrap: nowrap;
    padding-bottom: 1rem;
    margin-top: -1px;
    overflow-x: auto;
    text-align: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.btn-bd-primary {
    --bd-violet-bg: #712cf9;
    --bd-violet-rgb: 112.520718, 44.062154, 249.437846;

    --bs-btn-font-weight: 600;
    --bs-btn-color: var(--bs-white);
    --bs-btn-bg: var(--bd-violet-bg);
    --bs-btn-border-color: var(--bd-violet-bg);
    --bs-btn-hover-color: var(--bs-white);
    --bs-btn-hover-bg: #6528e0;
    --bs-btn-hover-border-color: #6528e0;
    --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
    --bs-btn-active-color: var(--bs-btn-hover-color);
    --bs-btn-active-bg: #5a23c8;
    --bs-btn-active-border-color: #5a23c8;
}

.bd-mode-toggle {
    z-index: 1500;
}

.bd-mode-toggle .dropdown-menu .active .bi {
    display: block !important;
}

figure {
    display: block; /* Ensure block-level behavior */
    margin-left: auto;
    margin-right: auto;
}
.align-right {
    display: flex;
    justify-content: flex-end;
}

.card-text-icon {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--font-color);
    color: black;
}

.bg-forest {
    --tw-bg-opacity: 1;
    background-color: rgb(158 176 66 / var(--tw-bg-opacity));
}

.bg-mountain {
    --tw-bg-opacity: 1;
    background-color: rgb(189 128 73 / var(--tw-bg-opacity));
}

.bg-ocean {
    --tw-bg-opacity: 1;
    background-color: rgb(88 113 166 / var(--tw-bg-opacity));
}

.bg-color-reserve-cost {
    background-color: indianred;
}

.theme-banner {
    background-size: cover;
    background-position: 50% 35%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    text-align: center;
}

.display-4 {
    font-family: 'Cantabile';
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .025em;
    font-size: 2rem;
    line-height: 1;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

.hr-style {
    height: 9px;
    background: rgb(255, 255, 255);
    background: linear-gradient(90deg, #FFFEFC 0%, #DDBF5F 30%, #FFFEFC 100%);
    border: 0;
    opacity: 1;
}

/* ============================================
   MODERN DESIGN IMPROVEMENTS
   ============================================ */

/* ============================================
   LOGIN PAGE STYLES - MODERN DESIGN
   ============================================ */

.login-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.05) 0%, rgba(71, 82, 196, 0.05) 100%);
}

.min-vh-50 {
    min-height: 50vh;
}

.login-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(88, 101, 242, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.login-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(88, 101, 242, 0.15) !important;
}

/* Login Title & Subtitle */
.login-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-bs-theme="dark"] .login-title {
    background: none;
    -webkit-text-fill-color: white;
    color: white;
}

.login-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.6);
}

[data-bs-theme="dark"] .login-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* Login Form Labels */
.login-label {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: rgba(0, 0, 0, 0.8);
    letter-spacing: 0.2px;
}

[data-bs-theme="dark"] .login-label {
    color: rgba(255, 255, 255, 0.9);
}

/* Login Input Groups */
.login-input-group {
    position: relative;
    margin-bottom: 0.5rem;
}

.login-input-icon {
    background: rgba(88, 101, 242, 0.1) !important;
    border: 1.5px solid rgba(88, 101, 242, 0.3) !important;
    border-right: none !important;
    color: #5865F2 !important;
    padding: 0.75rem 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-input {
    border: 1.5px solid rgba(88, 101, 242, 0.3) !important;
    border-left: none !important;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
}

[data-bs-theme="dark"] .login-input {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}

.login-input:focus {
    border-color: #5865F2 !important;
    box-shadow: 0 0 0 0.2rem rgba(88, 101, 242, 0.15) !important;
    background: rgba(255, 255, 255, 1) !important;
    transform: translateY(-1px);
}

[data-bs-theme="dark"] .login-input:focus {
    background: rgba(255, 255, 255, 0.08) !important;
}

.login-input-group:focus-within .login-input-icon {
    background: rgba(88, 101, 242, 0.15) !important;
    border-color: #5865F2 !important;
    color: #5865F2 !important;
}

/* Login Forgot Link */
.login-forgot-link {
    font-size: 0.875rem;
    color: #5865F2;
    transition: all 0.2s ease;
    font-weight: 500;
}

.login-forgot-link:hover {
    color: #4752C4;
    text-decoration: underline !important;
    transform: translateX(2px);
}

/* Login Submit Button */
.login-submit-btn {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    border: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.login-submit-btn:hover {
    background: linear-gradient(135deg, #4752C4 0%, #5865F2 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

.login-submit-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Discord Button - Force blue color */
.login-discord-btn,
.btn-discord,
a.btn-discord,
a.login-discord-btn {
    background-color: #5865F2 !important;
    background-image: linear-gradient(135deg, #5865F2 0%, #4752C4 100%) !important;
    border: none !important;
    border-color: #5865F2 !important;
    color: #ffffff !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3) !important;
}

.login-discord-btn:hover,
.btn-discord:hover,
a.btn-discord:hover,
a.login-discord-btn:hover {
    background-color: #4752C4 !important;
    background-image: linear-gradient(135deg, #4752C4 0%, #5865F2 100%) !important;
    border: none !important;
    border-color: #4752C4 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4) !important;
}

.login-discord-btn:active,
.btn-discord:active,
a.btn-discord:active,
a.login-discord-btn:active {
    transform: translateY(0) scale(0.98);
    background-color: #5865F2 !important;
    background-image: linear-gradient(135deg, #5865F2 0%, #4752C4 100%) !important;
}

.login-discord-btn:focus,
.btn-discord:focus,
a.btn-discord:focus,
a.login-discord-btn:focus {
    background-color: #5865F2 !important;
    background-image: linear-gradient(135deg, #5865F2 0%, #4752C4 100%) !important;
    border-color: #5865F2 !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.2rem rgba(88, 101, 242, 0.5) !important;
}

.login-discord-btn.btn-lg,
.btn-discord.btn-lg {
    background-color: #5865F2 !important;
    background-image: linear-gradient(135deg, #5865F2 0%, #4752C4 100%) !important;
}

/* Login Alert */
.login-alert {
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
    animation: slideIn 0.3s ease;
}

/* Divider */
.divider-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(88, 101, 242, 0.3), transparent);
}

.divider-text {
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.5);
}

[data-bs-theme="dark"] .divider-text {
    color: rgba(255, 255, 255, 0.5);
}

/* Register Link Section */
.login-register-section {
    border-top: 1px solid rgba(88, 101, 242, 0.1) !important;
}

.login-register-link {
    color: #5865F2;
    transition: all 0.2s ease;
}

.login-register-link:hover {
    color: #4752C4;
    text-decoration: underline !important;
    transform: translateX(2px);
}

/* Login Image */
.login-image-wrapper {
    position: relative;
    min-height: 500px;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    overflow: hidden;
}

.login-image {
    object-fit: cover;
    width: 100%;
    height: 100%;
    opacity: 0.85;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-image-wrapper:hover .login-image {
    transform: scale(1.08);
}

.login-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.4) 0%, rgba(71, 82, 196, 0.4) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* Responsive */
@media (max-width: 991px) {
    .login-title {
        font-size: 2rem;
    }
    
    .login-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .login-container {
        padding: 1rem 0;
    }
    
    .login-title {
        font-size: 1.75rem;
    }
    
    .login-card {
        border-radius: 1rem !important;
    }
}

/* Navigation Improvements */
.navbar {
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link {
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 0.375rem;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--bs-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

/* Button Improvements */
.btn {
    transition: all 0.3s ease;
    font-weight: 500;
    border-radius: 0.5rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4752C4 0%, #5865F2 100%);
}

/* Table Improvements */
.table {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table thead {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0056b3 100%);
    color: white;
}

.table thead th {
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    padding: 1rem;
}

.table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table tbody tr:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.05);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.table tbody tr.table-secondary:hover {
    background-color: rgba(var(--bs-secondary-rgb), 0.15);
}

.table td {
    padding: 1rem;
    vertical-align: middle;
}

/* Card Improvements */
.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0056b3 100%);
    color: white;
    border: none;
    font-weight: 600;
    padding: 1rem 1.5rem;
}

/* Form Improvements */
.form-control {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.15);
    transform: translateY(-1px);
}

.input-group-text {
    border-radius: 0.5rem 0 0 0.5rem;
    border-right: none;
    transition: all 0.3s ease;
}

.form-control:focus + .input-group-text,
.input-group:focus-within .input-group-text {
    border-color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

/* ============================================
   MATCH TRACKER PAGE STYLES
   ============================================ */

.match-tracker-container {
    min-height: calc(100vh - 200px);
    background: transparent;
    padding: 2rem 0;
}

.match-header {
    margin-bottom: 2rem;
}

.match-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.match-subtitle {
    font-size: 1rem;
    line-height: 1.6;
}

.match-tabs-nav {
    border-bottom: none;
    margin-bottom: 2rem;
}

.match-tabs {
    border-bottom: none;
    gap: 0.75rem;
    background: transparent;
}

.match-tab-btn {
    border: none;
    border-radius: 0.75rem;
    margin-right: 0;
    margin-bottom: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .match-tab-btn {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.match-tab-btn:hover {
    background-color: rgba(88, 101, 242, 0.1);
    color: #5865F2;
    border-color: rgba(88, 101, 242, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(88, 101, 242, 0.15);
}

[data-bs-theme="dark"] .match-tab-btn:hover {
    color: #5865F2;
    background-color: rgba(88, 101, 242, 0.15);
    border-color: rgba(88, 101, 242, 0.3);
}

.match-tab-btn.active {
    background: rgba(255, 255, 255, 1) !important;
    color: rgba(0, 0, 0, 0.9) !important;
    border-color: rgba(88, 101, 242, 0.3) !important;
    border-width: 2px !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .match-tab-btn.active {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(88, 101, 242, 0.4) !important;
}

.match-tabs .nav-link.active {
    background: rgba(255, 255, 255, 1) !important;
    color: rgba(0, 0, 0, 0.9) !important;
    border-color: rgba(88, 101, 242, 0.3) !important;
}

[data-bs-theme="dark"] .match-tabs .nav-link.active {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.match-tab-content {
    background: transparent;
    padding: 0;
}

.match-content-wrapper {
    background: transparent;
    padding: 1.5rem 0;
}

/* Match Table Styles */
.match-table-header {
    padding: 1.5rem 0;
}

.match-table-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.9);
    margin: 0;
}

[data-bs-theme="dark"] .match-table-title {
    color: rgba(255, 255, 255, 0.9);
}

.match-table-wrapper {
    overflow-x: auto;
    border-radius: 0.75rem;
    background: transparent;
    margin: 1.5rem 0;
}

.match-table {
    background: transparent;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 0;
}

.match-table thead {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    color: white;
}

.match-table thead th {
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
    white-space: nowrap;
}

.match-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .match-table tbody tr {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.match-table tbody tr:hover {
    background-color: rgba(88, 101, 242, 0.05);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .match-table tbody tr:hover {
    background-color: rgba(88, 101, 242, 0.1);
}

.match-table tbody tr.table-secondary {
    background-color: rgba(0, 0, 0, 0.02);
}

[data-bs-theme="dark"] .match-table tbody tr.table-secondary {
    background-color: rgba(255, 255, 255, 0.02);
}

[data-bs-theme="dark"] .match-table tbody tr.table-secondary td {
    color: rgba(0, 0, 0, 0.8);
}

.match-table tbody tr.table-secondary:hover {
    background-color: rgba(88, 101, 242, 0.08);
}

.match-table td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
    color: rgba(0, 0, 0, 0.8);
}

[data-bs-theme="dark"] .match-table td {
    color: rgba(255, 255, 255, 0.8);
}

.match-empty-state {
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.75rem;
    border: 2px dashed rgba(88, 101, 242, 0.2);
}

[data-bs-theme="dark"] .match-empty-state {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(88, 101, 242, 0.3);
}

/* Responsive Match Table */
@media (max-width: 768px) {
    .match-title {
        font-size: 2rem;
    }
    
    .match-table-title {
        font-size: 1.5rem;
    }
    
    .match-tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .match-table-wrapper {
        margin: 1rem 0;
    }
}

/* Nav Tabs Improvements - Style harmonisé comme "mes matchs" */
.nav-tabs {
    border-bottom: none;
    gap: 0.75rem;
    background: transparent;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 0.75rem;
    margin-right: 0;
    margin-bottom: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .nav-tabs .nav-link {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.nav-tabs .nav-link:hover {
    background-color: rgba(88, 101, 242, 0.1);
    color: #5865F2;
    border-color: rgba(88, 101, 242, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(88, 101, 242, 0.15);
}

[data-bs-theme="dark"] .nav-tabs .nav-link:hover {
    color: #5865F2;
    background-color: rgba(88, 101, 242, 0.15);
    border-color: rgba(88, 101, 242, 0.3);
}

.nav-tabs .nav-link.active {
    background: rgba(255, 255, 255, 1) !important;
    background-color: rgba(255, 255, 255, 1) !important;
    background-image: none !important;
    color: rgba(0, 0, 0, 0.9) !important;
    border-color: rgba(88, 101, 242, 0.3) !important;
    border-width: 2px !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .nav-tabs .nav-link.active {
    background: rgba(255, 255, 255, 0.1) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    background-image: none !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(88, 101, 242, 0.4) !important;
}

/* Override for match tabs - no blue background */
.match-tabs .nav-link.active,
.match-tabs-nav .nav-link.active,
.match-tabs-nav .nav-tabs .nav-link.active,
.match-tabs .match-tab-btn.active,
.match-tabs-nav .match-tab-btn.active,
button.match-tab-btn.active,
button.nav-link.match-tab-btn.active {
    background: rgba(255, 255, 255, 1) !important;
    background-color: rgba(255, 255, 255, 1) !important;
    background-image: none !important;
    color: rgba(0, 0, 0, 0.9) !important;
    border-color: rgba(88, 101, 242, 0.3) !important;
    border-width: 2px !important;
    font-weight: 600;
}

/* Tous les tabs utilisent maintenant le même style harmonisé */

[data-bs-theme="dark"] .match-tabs .nav-link.active,
[data-bs-theme="dark"] .match-tabs-nav .nav-link.active,
[data-bs-theme="dark"] .match-tabs-nav .nav-tabs .nav-link.active,
[data-bs-theme="dark"] .match-tabs .match-tab-btn.active,
[data-bs-theme="dark"] .match-tabs-nav .match-tab-btn.active,
[data-bs-theme="dark"] button.match-tab-btn.active,
[data-bs-theme="dark"] button.nav-link.match-tab-btn.active {
    background: rgba(255, 255, 255, 0.1) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    background-image: none !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(88, 101, 242, 0.4) !important;
}

/* Footer Improvements */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: rgba(255, 255, 255, 0.8);
    margin-top: auto;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: white;
    transform: translateX(4px);
}

/* Alert Improvements */
.alert {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease;
}

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

/* Badge Improvements */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.badge:hover {
    transform: scale(1.1);
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Visible Improvements */
*:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* Responsive Improvements */
@media (max-width: 576px) {
    .login-card {
        margin: 1rem;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .table thead th,
    .table td {
        padding: 0.5rem;
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 0.5rem;
        margin: 0.25rem 0;
    }
}

/* Dark Mode Specific Adjustments */
[data-bs-theme="dark"] .login-card {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .card {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Footer Modern Styles */
.footer-modern {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: rgba(255, 255, 255, 0.8);
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-link:hover {
    color: white;
    transform: translateX(4px);
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.border-white-50 {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* ============================================
   LANGUAGE SWITCHER DROPDOWN
   ============================================ */

.language-switcher {
    position: relative;
}

.language-dropdown-toggle {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    min-width: 120px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
}

.language-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
    transform: none;
}

.language-dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(88, 101, 242, 0.25);
    border-color: #5865F2;
}

.language-dropdown-toggle[aria-expanded="true"] .language-chevron {
    transform: rotate(180deg);
}

.language-flag {
    font-size: 1.2rem;
    line-height: 1;
}

.language-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.language-chevron {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

/* Dropdown Menu */
.language-dropdown-menu {
    background: rgba(30, 30, 30, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.5rem;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    margin-top: 0.5rem;
}

.language-option {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    margin-bottom: 0.25rem;
}

.language-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateX(4px);
}

.language-option.active {
    background: linear-gradient(135deg, #FEE75C 0%, #FEE75C 100%);
    color: #1a1a1a;
    font-weight: 600;
}

.language-option.active:hover {
    background: linear-gradient(135deg, #FEE75C 0%, #FEE75C 100%);
    color: #1a1a1a;
    transform: translateX(4px);
}

.language-text {
    font-size: 0.9rem;
    flex: 1;
}

.language-option .bi-check2 {
    color: #1a1a1a;
    font-size: 1rem;
}

/* Light mode adjustments */
[data-bs-theme="light"] .language-dropdown-toggle {
    background: #ffffff !important;
    border: 2px solid #5865F2 !important;
    color: #212529 !important;
    height: 38px;
    padding: 0.5rem 0.75rem !important;
}

[data-bs-theme="light"] .language-dropdown-toggle:hover {
    background: #ffffff !important;
    border-color: #5865F2 !important;
    color: #212529 !important;
    transform: none;
    box-shadow: 0 0 0 0.2rem rgba(88, 101, 242, 0.15);
}

[data-bs-theme="light"] .language-dropdown-menu {
    background: #ffffff;
    border: 2px solid #5865F2;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

[data-bs-theme="light"] .language-option {
    color: #212529 !important;
}

[data-bs-theme="light"] .language-option:hover {
    background: rgba(88, 101, 242, 0.1);
    color: #212529 !important;
}

[data-bs-theme="light"] .language-option.active {
    background: linear-gradient(135deg, #FEE75C 0%, #FEE75C 100%);
    color: #1a1a1a;
}

/* Responsive */
@media (max-width: 991px) {
    .language-dropdown-toggle {
        min-width: auto;
        padding: 0.5rem 0.75rem;
    }
    
    .language-name {
        display: none;
    }
    
    .language-dropdown-menu {
        min-width: 160px;
    }
}

/* ============================================
   USER DROPDOWN
   ============================================ */

.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    height: 38px;
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: #ffffff !important;
}

.user-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
    transform: none;
}

.user-dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(88, 101, 242, 0.25);
    border-color: #5865F2;
    color: #ffffff !important;
}

.user-dropdown-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.user-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.user-dropdown-toggle .bi-chevron-down {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

/* Dropdown Menu */
.user-dropdown-menu {
    background: rgba(30, 30, 30, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.5rem;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    margin-top: 0.5rem;
}

.user-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    margin-bottom: 0.25rem;
}

.user-dropdown-menu .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateX(4px);
}

.user-dropdown-menu .dropdown-item.text-danger {
    color: rgba(220, 53, 69, 0.9) !important;
}

.user-dropdown-menu .dropdown-item.text-danger:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545 !important;
}

.user-dropdown-menu .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

/* Light mode adjustments */
[data-bs-theme="light"] .user-dropdown-toggle {
    background: #ffffff !important;
    border: 2px solid #5865F2 !important;
    color: #212529 !important;
    height: 38px;
    padding: 0.5rem 0.75rem !important;
}

[data-bs-theme="light"] .user-dropdown-toggle:hover {
    background: #ffffff !important;
    border-color: #5865F2 !important;
    color: #212529 !important;
    transform: none;
    box-shadow: 0 0 0 0.2rem rgba(88, 101, 242, 0.15);
}

[data-bs-theme="light"] .user-dropdown-menu {
    background: #ffffff;
    border: 2px solid #5865F2;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

[data-bs-theme="light"] .user-dropdown-menu .dropdown-item {
    color: #212529 !important;
}

[data-bs-theme="light"] .user-dropdown-menu .dropdown-item:hover {
    background: rgba(88, 101, 242, 0.1);
    color: #212529 !important;
}

[data-bs-theme="light"] .user-dropdown-menu .dropdown-item.text-danger {
    color: #dc3545 !important;
}

[data-bs-theme="light"] .user-dropdown-menu .dropdown-item.text-danger:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545 !important;
}

[data-bs-theme="light"] .user-dropdown-menu .dropdown-divider {
    border-color: rgba(88, 101, 242, 0.2);
}

/* Responsive */
@media (max-width: 991px) {
    .user-dropdown-toggle {
        padding: 0.5rem 0.75rem;
    }
    
    .user-name {
        display: none;
    }
    
    .user-dropdown-menu {
        min-width: 180px;
    }
}

/* Enhanced Table Styles */
.table-responsive {
    border-radius: 0.75rem;
    overflow: hidden;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(var(--bs-primary-rgb), 0.02);
}

.table-striped > tbody > tr:nth-of-type(even) > td {
    background-color: transparent;
}

/* Input Group Enhancements */
.input-group-lg .form-control,
.input-group-lg .input-group-text {
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.input-group:focus-within .input-group-text {
    color: var(--bs-primary);
}

/* Rounded corners for better visual appeal */
.rounded-4 {
    border-radius: 1rem !important;
}

.rounded-5 {
    border-radius: 1.5rem !important;
}

/* Shadow utilities */
.shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.shadow-xl {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
}

/* Smooth transitions for all interactive elements */
a, button, .btn, .nav-link, .form-control, .card {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Improved text contrast */
.text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

[data-bs-theme="light"] .text-muted {
    color: rgba(0, 0, 0, 0.6) !important;
}

/* Loading animation */
@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
    }
    50% { 
        opacity: 0.5; 
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Loading spinner for async operations */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Improved select styling */
select.form-control,
select.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

/* Pagination improvements */
.pagination {
    gap: 0.5rem;
}

.page-link {
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    margin: 0 0.125rem;
}

.page-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0056b3 100%);
    border-color: var(--bs-primary);
}

/* Modal improvements */
.modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 1rem 1rem 0 0;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0 0 1rem 1rem;
}

/* Dropdown improvements */
.dropdown-menu {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    margin: 0.125rem 0;
}

.dropdown-item:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    transform: translateX(4px);
}

/* Tooltip improvements */
.tooltip {
    font-size: 0.875rem;
}

.tooltip-inner {
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
}

/* Progress bar improvements */
.progress {
    border-radius: 0.5rem;
    overflow: hidden;
    height: 0.75rem;
}

.progress-bar {
    transition: width 0.6s ease;
}

/* List group improvements */
.list-group-item {
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.list-group-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.list-group-item.active {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0056b3 100%);
    border-color: var(--bs-primary);
}

/* Breadcrumb improvements */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 1.2rem;
    color: var(--bs-secondary);
}

.breadcrumb-item a {
    color: var(--bs-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
    transform: translateX(2px);
}