.box {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 20px;
    background-color: #f9f9f9;
}
td .flag-icon {
    margin-right: 5px; /* Ajouter un espacement entre le drapeau et le texte */
}
@media (max-width: 768px) {
    .d-flex.flex-md-row {
        flex-direction: column !important;
    }
}

.admin-accounts-page {
    max-width: 980px;
}

.admin-accounts-page .admin-section-card {
    overflow: visible;
    border: 1px solid rgba(26,58,107,0.10);
    border-radius: 8px;
    padding: 0;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15,23,42,0.08);
}

.admin-accounts-page .admin-section-header {
    margin-bottom: 0 !important;
    padding: 13px 16px 11px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(90deg, #10284d, #1f5f9f);
}

.admin-accounts-page .admin-section-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.2;
}

.admin-accounts-page .admin-add-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: rgba(255,255,255,0.14);
    color: #ffffff;
    box-shadow: none;
}

.admin-accounts-page .admin-add-btn:hover,
.admin-accounts-page .admin-add-btn:focus {
    background: rgba(255,255,255,0.22);
    color: #ffffff;
}

.admin-accounts-page .admin-filter-row {
    padding: 12px 12px 0;
    gap: 10px;
}

.admin-accounts-page .form-control,
.admin-accounts-page .custom-select-trigger {
    min-height: 42px;
    border-color: #c8d3e1;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(15,23,42,0.06);
}

.admin-accounts-page .admin-accounts-table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-accounts-page .admin-accounts-table tr:nth-child(odd) {
    background: #fbfcfe;
}

.admin-accounts-page .admin-accounts-table tr:nth-child(even) {
    background: #ffffff;
}

.admin-accounts-page .admin-accounts-table td {
    padding: 9px 12px;
    border-top: 1px solid #e8edf3;
    vertical-align: middle;
    color: #1f2937;
}

.admin-accounts-page .admin-accounts-table tr:first-child td {
    border-top: 0;
}

.admin-accounts-page .admin-accounts-table td:first-child {
    font-weight: 700;
}

.admin-accounts-page .admin-accounts-table td:last-child {
    width: 54px;
    text-align: right;
}

.admin-accounts-page .admin-accounts-table .btn-secondary {
    width: 38px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: #eef2f6;
    color: #1a3a6b;
    box-shadow: none;
}

.admin-accounts-page .admin-accounts-table .btn-secondary:hover,
.admin-accounts-page .admin-accounts-table .btn-secondary:focus {
    background: #dfe7f0;
    color: #10284d;
}

.admin-accounts-page .dropdown-menu {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15,23,42,0.18);
    max-width: calc(100vw - 24px);
    min-width: 190px;
    z-index: 2050;
}

.admin-accounts-page .dropdown-item {
    font-size: 0.9rem;
    font-weight: 700;
    white-space: normal;
}

.admin-account-modal .modal-content {
    overflow: hidden;
    border: 1px solid rgba(26,58,107,0.12);
    border-radius: 10px;
    box-shadow: 0 24px 70px rgba(15,23,42,0.28);
}

.admin-account-modal .modal-header {
    border-bottom: 0;
    background: linear-gradient(90deg, #10284d, #1f5f9f);
    color: #ffffff;
}

.admin-account-modal .modal-title {
    font-weight: 800;
}

.admin-account-modal .close {
    color: #ffffff;
    opacity: 0.9;
    text-shadow: none;
}

.admin-account-modal .modal-body {
    background: #f8fafc;
}

.admin-account-modal .form-group label,
.admin-account-modal .form-check-label {
    color: #1a3a6b;
    font-weight: 800;
}

.admin-account-modal .form-control,
.admin-account-modal .custom-select-trigger {
    min-height: 42px;
    border-color: #c8d3e1;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(15,23,42,0.06);
}

.admin-account-modal .modal-footer {
    border-top: 1px solid #e8edf3;
    background: #ffffff;
    padding: 10px 12px;
}

.admin-account-modal .modal-footer .btn {
    border-radius: 8px;
    font-weight: 800;
    pointer-events: auto;
    transform: none;
}

.admin-tournament-page {
    max-width: 1180px;
}

.admin-tournament-page .admin-tournament-card {
    overflow: visible;
    border: 1px solid rgba(26,58,107,0.10);
    border-radius: 8px;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15,23,42,0.08);
}

.admin-tournament-page .admin-tournament-header {
    margin: -20px -20px 14px !important;
    padding: 13px 16px 11px;
    gap: 12px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(90deg, #10284d, #1f5f9f);
}

.admin-tournament-page .admin-tournament-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.2;
}

.admin-tournament-page .admin-tournament-header h3 .text-muted {
    color: rgba(255,255,255,0.78) !important;
}

.admin-tournament-page .admin-tournament-header .btn {
    border-radius: 8px;
    font-weight: 800;
    white-space: nowrap;
}

.admin-tournament-page .admin-tournament-header .btn-outline-primary {
    border-color: rgba(255,255,255,0.42);
    background: rgba(255,255,255,0.12);
    color: #ffffff;
}

.admin-tournament-page .admin-tournament-header .btn-warning {
    border: 0;
    background: #f5c451;
    color: #172033;
}

.admin-tournament-page .admin-add-btn {
    min-height: 38px;
    border: 0;
    background: rgba(255,255,255,0.14);
    color: #ffffff;
    box-shadow: none;
}

.admin-tournament-page .admin-add-btn:hover,
.admin-tournament-page .admin-add-btn:focus,
.admin-tournament-page .admin-tournament-header .btn-outline-primary:hover,
.admin-tournament-page .admin-tournament-header .btn-outline-primary:focus {
    background: rgba(255,255,255,0.22);
    color: #ffffff;
}

.admin-tournament-page .admin-tournament-table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-tournament-page .admin-tournament-table thead th {
    border-top: 0;
    border-bottom: 1px solid #dce5ef;
    background: #eef4fb;
    color: #1a3a6b;
    font-size: 0.82rem;
    font-weight: 800;
}

.admin-tournament-page .admin-tournament-table tr:nth-child(odd) {
    background: #fbfcfe;
}

.admin-tournament-page .admin-tournament-table tr:nth-child(even) {
    background: #ffffff;
}

.admin-tournament-page .admin-tournament-table td,
.admin-tournament-page .admin-tournament-table th {
    padding: 9px 12px;
    vertical-align: middle;
}

.admin-tournament-page .admin-tournament-table td {
    border-top: 1px solid #e8edf3;
    color: #1f2937;
    font-weight: 600;
}

.admin-tournament-page .admin-tournament-table tr:first-child td {
    border-top: 0;
}

.admin-tournament-page .admin-tournament-table td:last-child,
.admin-tournament-page .admin-tournament-table th:last-child {
    width: 72px;
    text-align: right;
}

.admin-tournament-page .admin-tournament-table .btn-secondary,
.admin-tournament-page .admin-tournament-table .btn-success {
    min-width: 38px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
}

.admin-tournament-page .admin-tournament-table .btn-secondary {
    background: #eef2f6;
    color: #1a3a6b;
}

.admin-tournament-page .admin-tournament-table .btn-success {
    background: #e5f4ec;
    color: #17623b;
    font-weight: 800;
}

.admin-tournament-page .admin-tournament-table .btn-secondary:hover,
.admin-tournament-page .admin-tournament-table .btn-secondary:focus {
    background: #dfe7f0;
    color: #10284d;
}

.admin-tournament-page .admin-tournament-table .badge-secondary {
    border-radius: 999px;
    background: #dfe7f0;
    color: #1a3a6b;
    font-weight: 800;
}

.admin-tournament-page .dropdown-menu {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15,23,42,0.18);
    max-width: calc(100vw - 24px);
    min-width: 190px;
    z-index: 2050;
}

.admin-tournament-page .dropdown-item {
    font-size: 0.9rem;
    font-weight: 700;
    white-space: normal;
}

.admin-tournament-page .form-control,
.admin-tournament-page .custom-select-trigger {
    min-height: 42px;
    border-color: #c8d3e1;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(15,23,42,0.06);
}

.admin-tournament-page label,
.admin-tournament-page .font-weight-600 {
    color: #1a3a6b;
    font-weight: 800;
}

.admin-tournament-page .text-muted {
    color: #687789 !important;
}

.admin-tournament-modal .modal-content {
    overflow: hidden;
    border: 1px solid rgba(26,58,107,0.12);
    border-radius: 10px;
    box-shadow: 0 24px 70px rgba(15,23,42,0.30);
}

.admin-tournament-modal .modal-header {
    border-bottom: 0;
    background: linear-gradient(90deg, #10284d, #1f5f9f);
    color: #ffffff;
}

.admin-tournament-modal .modal-title {
    font-weight: 800;
}

.admin-tournament-modal .close {
    color: #ffffff;
    opacity: 0.9;
    text-shadow: none;
}

.admin-tournament-modal .modal-body {
    background: #f8fafc;
}

.admin-tournament-modal .form-group label,
.admin-tournament-modal .form-check-label {
    color: #1a3a6b;
    font-weight: 800;
}

.admin-tournament-modal .form-control,
.admin-tournament-modal .custom-select-trigger {
    min-height: 42px;
    border-color: #c8d3e1;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(15,23,42,0.06);
}

.admin-tournament-modal .modal-footer {
    border-top: 1px solid #e8edf3;
    background: #ffffff;
    padding: 10px 12px;
}

.admin-tournament-modal .modal-footer .btn {
    border-radius: 8px;
    font-weight: 800;
    pointer-events: auto;
    transform: none;
}

@media (max-width: 576px) {
    .admin-accounts-page {
        padding-left: 7px;
        padding-right: 7px;
    }

    .admin-accounts-page .admin-section-header {
        padding: 11px 12px 10px;
    }

    .admin-accounts-page .admin-section-header h3 {
        font-size: 1rem;
    }

    .admin-accounts-page .admin-filter-row {
        padding: 10px 10px 0;
        gap: 0;
    }

    .admin-accounts-page .admin-accounts-table td {
        padding: 8px 9px;
        font-size: 0.82rem;
    }

    .admin-tournament-page {
        padding-left: 7px;
        padding-right: 7px;
    }

    .admin-tournament-page .admin-tournament-card {
        padding: 16px 12px;
    }

    .admin-tournament-page .admin-tournament-header {
        margin: -16px -12px 12px !important;
        padding: 11px 12px 10px;
        align-items: flex-start !important;
        flex-direction: column;
    }

    .admin-tournament-page .admin-tournament-header h3 {
        font-size: 1rem;
    }

    .admin-tournament-page .admin-tournament-header .btn,
    .admin-tournament-page .admin-tournament-header .d-flex {
        width: 100%;
    }

    .admin-tournament-page .admin-tournament-header .btn {
        justify-content: center;
    }

    .admin-tournament-page .admin-tournament-table td,
    .admin-tournament-page .admin-tournament-table th {
        padding: 8px 9px;
        font-size: 0.82rem;
    }
}
