﻿        * {
            box-sizing: border-box;
            padding: 0;
            margin: 0;
        }
        .master-settings-container {
            padding: 20px;
            width: 100%;
            margin: 0;
        }
        
        .page-header {
            padding: 0 0 20px 0;
            margin-bottom: 25px;
            border-bottom: 1px solid #dee2e6;
        }
        
        .page-header h1 {
            margin: 0 0 8px 0;
            font-size: 28px;
            font-weight: 700;
            color: #333;
        }
        
        .page-header p {
            margin: 0;
            font-size: 14px;
            color: #6c757d;
        }
        
        .stats-container {
            display: flex;
            gap: 40px;
            margin-bottom: 30px;
            align-items: center;
            justify-content: center;
        }
        
        .stat-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 10px 20px;
            min-height: 80px;
        }
        
        .stat-number {
            font-size: 36px;
            font-weight: 700;
            color: #333;
            line-height: 1;
        }
        
        .stat-label {
            font-size: 14px;
            color: #6c757d;
            font-weight: 500;
        }
        
        .stat-divider {
            width: 1px;
            height: 40px;
            background: #dee2e6;
        }
        
        .stat-icon {
            display: none;
        }
        
        /* DataTables personnalisation */
        .dataTables_wrapper .dataTables_length select,
        .dataTables_wrapper .dataTables_filter input {
            border: 1px solid #dee2e6;
            border-radius: 6px;
            padding: 6px 12px;
            margin: 0 5px;
        }
        
        .dataTables_wrapper .dataTables_filter input:focus {
            outline: none;
            border-color: #41bfad;
            box-shadow: 0 0 0 2px rgba(65, 191, 173, 0.1);
        }
        
        
        .dataTables_wrapper .dataTables_info,
        .dataTables_wrapper .dataTables_length label,
        .dataTables_wrapper .dataTables_filter label {
            font-size: 13px;
            color: #6c757d;
        }
        
        .dataTables_wrapper {
            padding: 20px;
        }
        
        table.dataTable thead th {
            background: #e9ecef !important;
            color: #495057 !important;
            border-bottom: 2px solid #dee2e6 !important;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 600 !important;
        }
        
        table.dataTable thead th:not(:first-child) {
            border-left: 1px solid #dee2e6 !important;
            text-align: center !important;
        }
        
        table.dataTable tbody tr {
            transition: background-color 0.2s ease;
        }
        
        /* Lignes alternÃ©es pour DataTables */
        table.dataTable tbody tr:nth-child(even) td {
            background: #f8f9fa !important;
        }
        
        table.dataTable tbody tr:nth-child(odd) td {
            background: white !important;
        }
        
        table.dataTable tbody tr:hover td {
            background: #e8f5f3 !important;
        }
        
        table.dataTable tbody td {
            border-bottom: 1px solid #dee2e6 !important;
            border-left: 1px solid #e9ecef !important;
        }
        
        .dataTables_wrapper .dataTables_paginate {
            padding-top: 24px;
            padding-bottom: 10px;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
        }
        
        .dataTables_wrapper .dataTables_paginate .paginate_button {
            min-width: 40px;
            height: 40px;
            padding: 0 8px;
            margin: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid #e9ecef;
            border-radius: 8px;
            background: white;
            color: #495057 !important;
            font-weight: 500;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration: none !important;
        }
        
        .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
            background: #f8f9fa;
            border-color: #41bfad;
            color: #41bfad !important;
            transform: translateY(-1px);
            box-shadow: 0 2px 4px rgba(65, 191, 173, 0.1);
        }
        
        .dataTables_wrapper .dataTables_paginate .paginate_button.current,
        .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
            background: #41bfad;
            border-color: #41bfad;
            color: white !important;
            font-weight: 600;
            box-shadow: 0 2px 8px rgba(65, 191, 173, 0.25);
        }
        
        .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
        .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
        .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active {
            background: #f8f9fa;
            border-color: #e9ecef;
            color: #adb5bd !important;
            cursor: not-allowed;
            opacity: 0.6;
        }
        
        .dataTables_wrapper .dataTables_paginate .paginate_button:active {
            transform: translateY(0);
            box-shadow: none;
        }
        
        /* Changer la couleur bleue des liens pagination en gris foncÃ© */
        .dataTables_wrapper .dataTables_paginate a,
        .dataTables_wrapper .dataTables_paginate .paginate_button,
        .dataTables_wrapper .dataTables_paginate .paginate_button a,
        .dataTables_wrapper .dataTables_paginate .paginate_button span {
            color: #495057 !important;
        }
        
        .dataTables_wrapper .dataTables_paginate .paginate_button:not(.disabled):not(.current) {
            color: #495057 !important;
        }
        
        /* Boutons Next et Previous */
        .dataTables_wrapper .dataTables_paginate .paginate_button.next,
        .dataTables_wrapper .dataTables_paginate .paginate_button.previous {
            color: #495057 !important;
        }
        
        .dataTables_wrapper .dataTables_paginate .paginate_button.next:hover,
        .dataTables_wrapper .dataTables_paginate .paginate_button.previous:hover {
            color: #41bfad !important;
        }
        
        .dataTables_wrapper .dataTables_length,
        .dataTables_wrapper .dataTables_filter {
            margin-bottom: 15px;
        }
        
        .coaches-table-container {
            background: white;
            border-radius: 10px;
            padding: 0;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            margin-top: 20px;
            overflow: hidden;
        }
        
        .table-header {
            background: #41bfad;
            color: white;
            padding: 20px;
            font-size: 20px;
            font-weight: 600;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .coaches-table {
            width: 100%;
            border-collapse: collapse;
        }
        
        /* Cacher le tableau avant l'initialisation de DataTables */
        #coaches-datatable {
            display: none;
        }
        
        #coaches-datatable.dataTable {
            display: table !important;
        }
        
        /* Loader */
        .table-loader {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 60px 20px;
            background: white;
        }
        
        .table-loader.hidden {
            display: none;
        }
        
        .spinner {
            width: 50px;
            height: 50px;
            border: 4px solid #f3f3f3;
            border-top: 4px solid #41bfad;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .loader-text {
            margin-top: 20px;
            color: #6c757d;
            font-size: 14px;
        }
        
        .coaches-table thead {
            background: #f8f9fa;
        }
        
        .coaches-table th {
            padding: 18px 15px !important;
            text-align: left;
            font-weight: 600;
            color: #495057 !important;
            background: #e9ecef !important;
            border-bottom: 2px solid #dee2e6 !important;
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .coaches-table th:first-child {
            width: 300px;
            min-width: 250px;
            border-radius: 0 !important;
        }
        
        .coaches-table th:not(:first-child) {
            text-align: center;
            border-left: 1px solid #dee2e6 !important;
        }
        
        .coaches-table th:last-child {
            border-radius: 0 !important;
        }
        
        .coaches-table td {
            padding: 18px 15px;
            border-bottom: 1px solid #e9ecef;
            vertical-align: middle;
            background: white;
        }
        
        /* Lignes alternÃ©es pour amÃ©liorer la visibilitÃ© */
        .coaches-table tbody tr:nth-child(even) td {
            background: #f8f9fa;
        }
        
        .coaches-table tbody tr:nth-child(odd) td {
            background: white;
        }
        
        /* Bordures entre les colonnes pour les colonnes de clubs */
        .coaches-table td:not(:first-child) {
            border-left: 1px solid #e9ecef;
            text-align: center;
        }
        
        /* AmÃ©liorer la visibilitÃ© au survol */
        .coaches-table tbody tr:hover td {
            background: #e8f5f3 !important;
            transition: background-color 0.2s ease;
        }
        
        /* Ligne de sÃ©paration plus visible entre les lignes */
        .coaches-table tbody tr {
            border-bottom: 1px solid #dee2e6;
        }
        
        /* AmÃ©liorer la visibilitÃ© des cellules de switches */
        .org-checkbox-cell {
            text-align: center !important;
            min-width: 120px;
        }
        
        /* Bouton de duplication minimaliste */
        .duplicate-btn {
            background: none !important;
            border: none;
            padding: 0;
            cursor: pointer;
            color: #495057;
            font-size: 18px;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: auto;
            height: auto;
            opacity: 0.8;
        }
        
        .duplicate-btn:hover {
            opacity: 1;
            color: #212529;
            transform: scale(1.15);
        }
        
        .duplicate-btn:active {
            transform: scale(0.95);
        }
        
        .duplicate-btn i {
            font-size: 18px;
        }
        
        /* PremiÃ¨re colonne (coach info) - pas de bordure gauche */
        .coaches-table td:first-child {
            border-left: none !important;
        }
        
        .coach-info {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .coach-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid #41bfad;
            background: linear-gradient(135deg, #41bfad 0%, #2da89a 100%);
        }
        
        .coach-avatar-placeholder {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: linear-gradient(135deg, #41bfad 0%, #2da89a 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 18px;
            flex-shrink: 0;
        }
        
        .coach-details {
            flex: 1;
        }
        
        .coach-name {
            font-weight: 600;
            color: #333;
            font-size: 15px;
        }
        
        /* Badges pour Master et User - design uniforme */
        .coach-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            margin-left: 6px;
            vertical-align: middle;
            flex-shrink: 0;
            font-size: 10px;
            color: white;
            line-height: 1;
        }
        
        .coach-badge i {
            line-height: 1;
            font-size: 10px;
        }
        
        .coach-badge-master {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        
        .coach-badge-user {
            background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
        }
        
        .org-checkbox-cell {
            text-align: center;
        }
        
        /* Toggle Switch Style */
        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 26px;
        }
        
        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ff8888;  /* Rouge doux pour Ã©tat dÃ©sactivÃ© */
            transition: .3s;
            border-radius: 26px;
        }
        
        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 20px;
            width: 20px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: .3s;
            border-radius: 50%;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }
        
        .toggle-switch input:checked + .toggle-slider {
            background-color: #41bfad;
        }
        
        .toggle-switch input:checked + .toggle-slider:before {
            transform: translateX(24px);
        }
        
        /* Hover rouge clair quand dÃ©sactivÃ© */
        .toggle-slider:hover {
            box-shadow: 0 0 0 2px rgba(255, 179, 179, 0.5);
        }
        
        /* Hover vert quand activÃ© */
        .toggle-switch input:checked + .toggle-slider:hover {
            box-shadow: 0 0 0 2px rgba(65, 191, 173, 0.3);
        }
        
        .no-coaches {
            text-align: center;
            padding: 60px 20px;
            color: #6c757d;
        }
        
        .no-coaches i {
            font-size: 60px;
            margin-bottom: 15px;
            opacity: 0.5;
        }
        
        .save-button-container {
            padding: 20px;
            background: white;
            border-top: 1px solid #e9ecef;
            display: flex;
            justify-content: flex-end;
        }
        
        
        .btn-save {
            background: linear-gradient(135deg, #41bfad 0%, #2ea896 100%);
            color: white;
            border: none;
            padding: 12px 28px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: inline-flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 4px 12px rgba(65, 191, 173, 0.3), 0 2px 6px rgba(0, 0, 0, 0.1);
            position: relative;
            overflow: hidden;
            white-space: nowrap;
        }
        
        /* Exception : Les boutons btn-save-top doivent avoir un fond blanc */
        button.btn-save.btn-save-top,
        button[type="submit"].btn-save.btn-save-top,
        button[type="button"].btn-save.btn-save-top {
            background: white !important;
            background-color: white !important;
            background-image: none !important;
            color: #41bfad !important;
            border: 2px solid #41bfad !important;
        }
        
        /* Surcharger le style pour les boutons avec classe btn-save-top */
        .btn-save.btn-save-top {
            background: white !important;
            background-color: white !important;
            background-image: none !important;
            color: #41bfad !important;
            border: 2px solid #41bfad !important;
            box-shadow: 0 2px 8px rgba(65, 191, 173, 0.2) !important;
            opacity: 1 !important;
        }
        
        .btn-save.btn-save-top:disabled {
            background: white !important;
            background-color: white !important;
            background-image: none !important;
            color: #9e9e9e !important;
            border-color: #d0d0d0 !important;
            cursor: not-allowed !important;
            opacity: 0.6 !important;
        }
        
        .btn-save.btn-save-top:hover:not(:disabled) {
            background: #f8f9fa !important;
            background-color: #f8f9fa !important;
            background-image: none !important;
            border-color: #2ea896 !important;
            color: #2ea896 !important;
        }
        
        #bulk-create-user-btn {
            background: white !important;
            background-color: white !important;
            background-image: none !important;
            opacity: 1 !important;
        }
        
        #bulk-create-user-btn:disabled {
            background: white !important;
            background-color: white !important;
            background-image: none !important;
            opacity: 0.6 !important;
        }
        
        .btn-save::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: left 0.6s;
        }
        
        .btn-save:hover::before {
            left: 100%;
        }
        
        .btn-save:hover {
            background: linear-gradient(135deg, #2ea896 0%, #248a7a 100%);
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(65, 191, 173, 0.4), 0 3px 10px rgba(0, 0, 0, 0.15);
        }
        
        .btn-save:active {
            transform: translateY(-1px);
            box-shadow: 0 3px 8px rgba(65, 191, 173, 0.35);
        }
        
        .btn-save i {
            font-size: 16px;
            filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
        }
        
        .btn-save-top {
            flex-shrink: 0;
            background: white !important;
            background-color: white !important;
            color: #41bfad !important;
            border: 2px solid #41bfad !important;
            box-shadow: 0 2px 8px rgba(65, 191, 173, 0.2) !important;
            opacity: 1 !important;
        }
        
        .btn-save-top:disabled {
            background: white !important;
            background-color: white !important;
            color: #9e9e9e !important;
            border-color: #d0d0d0 !important;
            cursor: not-allowed !important;
            opacity: 0.6 !important;
        }
        
        .btn-save-top:hover:not(:disabled) {
            transform: translateY(-3px);
            background: #f8f9fa !important;
            background-color: #f8f9fa !important;
            border-color: #2ea896 !important;
            color: #2ea896 !important;
            box-shadow: 0 4px 12px rgba(65, 191, 173, 0.3) !important;
        }
        
        .btn-save-top:active:not(:disabled) {
            background: white !important;
            background-color: white !important;
            transform: translateY(-1px);
        }
        
        .btn-save-top i {
            font-size: 16px;
            color: inherit;
        }
        
        .btn-save-top::before {
            display: none !important;
            opacity: 0 !important;
        }
        
        .btn-save.btn-save-top::before {
            display: none !important;
            opacity: 0 !important;
        }
        
        #bulk-create-user-btn::before {
            display: none !important;
            opacity: 0 !important;
        }
        
        /* Nouvelle classe pour les boutons avec fond blanc et bordure turquoise */
        .btn-white-outline {
            background: #ffffff !important;
            background-color: #ffffff !important;
            background-image: none !important;
            color: #41bfad !important;
            border: 2px solid #41bfad !important;
            padding: 10px 20px !important;
            border-radius: 6px !important;
            font-size: 13px !important;
            font-weight: 500 !important;
            cursor: pointer !important;
            transition: all 0.3s ease !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 8px !important;
            box-shadow: 0 2px 8px rgba(65, 191, 173, 0.2) !important;
            position: relative !important;
            white-space: nowrap !important;
            text-decoration: none !important;
            line-height: 1.4 !important;
            height: auto !important;
            min-height: 40px !important;
            margin: 0 !important;
            vertical-align: middle !important;
        }
        
        .btn-white-outline::before {
            display: none !important;
            content: none !important;
        }
        
        .btn-white-outline:hover:not(:disabled) {
            background: #f8f9fa !important;
            background-color: #f8f9fa !important;
            background-image: none !important;
            border-color: #2ea896 !important;
            color: #2ea896 !important;
            transform: translateY(-2px) !important;
            box-shadow: 0 4px 12px rgba(65, 191, 173, 0.3) !important;
        }
        
        .btn-white-outline:active:not(:disabled) {
            transform: translateY(0) !important;
            box-shadow: 0 2px 6px rgba(65, 191, 173, 0.25) !important;
        }
        
        .btn-white-outline:disabled {
            background: #ffffff !important;
            background-color: #ffffff !important;
            background-image: none !important;
            color: #9e9e9e !important;
            border-color: #d0d0d0 !important;
            cursor: not-allowed !important;
            opacity: 0.6 !important;
        }
        
        .btn-white-outline i {
            color: inherit !important;
            font-size: 14px !important;
            line-height: 1 !important;
            display: inline-block !important;
        }
        
        .btn-white-outline span {
            font-size: 13px !important;
            font-weight: 500 !important;
            line-height: 1.4 !important;
            display: inline-block !important;
            text-transform: none !important;
            letter-spacing: normal !important;
        }
        
        .btn-white-outline {
            text-transform: none !important;
        }
        
        .table-scroll-container {
            overflow-x: visible;
        }
        
        .coaches-table_wrapper {
            overflow-x: auto;
        }
        
        .access-count {
            display: inline-block;
            margin-left: 10px;
            padding: 4px 12px;
            background: rgba(65, 191, 173, 0.2);
            color: #41bfad;
            border-radius: 12px;
            font-size: 13px;
            font-weight: 600;
        }
        
        /* Styles pour le modal de permissions */
        .permissions-loader {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 60px 20px;
        }
        
        .permissions-loader.hidden {
            display: none;
        }
        
        .permissions-clubs-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
            margin-top: 20px;
        }
        
        @media (max-width: 1200px) {
            .permissions-clubs-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        @media (max-width: 768px) {
            .permissions-clubs-grid {
                grid-template-columns: 1fr;
            }
        }
        
        .club-card {
            background: white;
            border: 1px solid #e9ecef;
            border-radius: 16px;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            position: relative;
            display: flex;
            flex-direction: column;
        }
        
        .club-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #41bfad 0%, #2ea896 100%);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.4s ease;
        }
        
        .club-card:hover {
            border-color: #41bfad;
            box-shadow: 0 8px 24px rgba(65, 191, 173, 0.2);
            transform: translateY(-4px);
        }
        
        .club-card:hover::before {
            transform: scaleX(1);
        }
        
        .club-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 24px;
            background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
            border-bottom: 1px solid #e9ecef;
            position: relative;
        }
        
        .club-card-header::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, #41bfad 50%, transparent);
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .club-card:hover .club-card-header::after {
            opacity: 1;
        }
        
        .club-card-title {
            font-size: 16px;
            font-weight: 700;
            color: #2c3e50;
            display: flex;
            align-items: center;
            gap: 12px;
            letter-spacing: -0.3px;
        }
        
        .club-card-title i {
            color: #41bfad;
            font-size: 18px;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(65, 191, 173, 0.1);
            border-radius: 8px;
            padding: 4px;
        }
        
        .club-card-status {
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.08);
        }
        
        .club-card-status.active {
            background: linear-gradient(135deg, #41bfad 0%, #2ea896 100%);
            color: white;
        }
        
        .club-card-status.inactive {
            background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
            color: white;
        }
        
        .club-card.inactive {
            background: #fff5f5;
            box-shadow: 0 2px 8px rgba(231, 76, 60, 0.25);
        }
        
        .club-card.inactive::before {
            background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
            transform: scaleX(1);
        }
        
        .club-card.inactive:hover {
            border-color: #e74c3c;
            box-shadow: 0 8px 24px rgba(231, 76, 60, 0.35);
            background: #fff0f0;
        }
        
        .club-card.inactive .club-card-header {
            background: linear-gradient(135deg, #fff5f5 0%, #fee 100%);
        }
        
        .club-card-body {
            padding: 18px;
            flex: 1;
        }
        
        .permissions-tabs {
            display: flex;
            gap: 6px;
            margin-bottom: 14px;
            background: #f8f9fa;
            padding: 3px;
            border-radius: 10px;
            position: relative;
        }
        
        .permissions-tab {
            flex: 1;
            padding: 8px 12px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 600;
            color: #6c757d;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-transform: uppercase;
            letter-spacing: 0.4px;
            text-align: center;
            border-radius: 8px;
            position: relative;
            z-index: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }
        
        .permissions-tab i {
            font-size: 12px;
        }
        
        .permissions-tab:hover {
            color: #41bfad;
            background: rgba(65, 191, 173, 0.08);
        }
        
        .permissions-tab.active {
            color: white;
            background: linear-gradient(135deg, #41bfad 0%, #2ea896 100%);
            box-shadow: 0 2px 8px rgba(65, 191, 173, 0.3);
        }
        
        .permissions-section {
            margin-top: 12px;
            display: none;
        }
        
        .permissions-section.active {
            display: block;
        }
        
        .permissions-section-title {
            font-size: 14px;
            font-weight: 600;
            color: #495057;
            margin-bottom: 15px;
            padding-bottom: 8px;
            border-bottom: 1px solid #e9ecef;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: none; /* CachÃ© car on utilise les tabs maintenant */
        }
        
        .permission-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            border-bottom: 1px solid #f0f0f0;
            transition: background-color 0.2s ease;
            border-radius: 6px;
            margin-bottom: 2px;
        }
        
        .permission-item:hover {
            background-color: #f8f9fa;
            padding-left: 6px;
            padding-right: 6px;
        }
        
        .permission-item:last-child {
            border-bottom: none;
            margin-bottom: 0;
        }
        
        .permission-label {
            font-size: 12px;
            color: #495057;
            flex: 1;
            font-weight: 500;
            transition: color 0.2s ease;
        }
        
        .permission-item:hover .permission-label {
            color: #2c3e50;
        }
        
        .permission-toggle {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 26px;
        }
        
        .permission-toggle input[type="checkbox"] {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .permission-toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ff8888;
            transition: .3s;
            border-radius: 26px;
        }
        
        .permission-toggle-slider:before {
            position: absolute;
            content: "";
            height: 20px;
            width: 20px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: .3s;
            border-radius: 50%;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }
        
        .permission-toggle input:checked + .permission-toggle-slider {
            background-color: #41bfad;
        }
        
        .permission-toggle input:checked + .permission-toggle-slider:before {
            transform: translateX(24px);
        }
        
        /* Styles pour le sÃ©lecteur de groupes - Dropdown compact */
        .groups-selector {
            margin-bottom: 12px;
            padding-bottom: 10px;
            border-bottom: 2px solid #f0f0f0;
            position: relative;
        }
        
        .groups-selector-label {
            font-weight: 700;
            margin-bottom: 6px;
            display: block;
            color: #2c3e50;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.6px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .groups-selector-label i {
            color: #41bfad;
            font-size: 12px;
        }
        
        .groups-dropdown {
            position: relative;
            display: inline-block;
            width: 100%;
        }
        
        .groups-dropdown-trigger {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 6px 10px;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            background: white;
            cursor: pointer;
            transition: all 0.2s ease;
            min-height: 32px;
        }
        
        .groups-dropdown-trigger:hover {
            border-color: #41bfad;
        }
        
        .groups-dropdown-trigger.active {
            border-color: #41bfad;
            box-shadow: 0 0 0 2px rgba(65, 191, 173, 0.1);
        }
        
        .groups-selected-display {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 11px;
            color: #495057;
            overflow: hidden;
        }
        
        .groups-selected-tag {
            display: inline-flex;
            align-items: center;
            padding: 2px 6px;
            border-radius: 8px;
            font-size: 10px;
            background: #41bfad;
            color: white;
            white-space: nowrap;
            flex-shrink: 0;
        }
        
        .groups-selected-count {
            color: #41bfad;
            font-weight: 600;
            font-size: 10px;
            flex-shrink: 0;
            margin-left: auto;
        }
        
        .groups-dropdown-arrow {
            color: #6c757d;
            font-size: 12px;
            transition: transform 0.2s ease;
            margin-left: 8px;
            flex-shrink: 0;
        }
        
        .groups-dropdown-trigger.active .groups-dropdown-arrow {
            transform: rotate(180deg);
        }
        
        .groups-dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            margin-top: 4px;
            background: white;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            max-height: 250px;
            overflow-y: auto;
            z-index: 1000;
            display: none;
        }
        
        .groups-dropdown-menu.show {
            display: block;
        }
        
        .groups-dropdown-item {
            display: flex;
            align-items: center;
            padding: 10px 12px;
            cursor: pointer;
            transition: background-color 0.15s ease;
            border-bottom: 1px solid #f8f9fa;
        }
        
        .groups-dropdown-item:last-child {
            border-bottom: none;
        }
        
        .groups-dropdown-item:hover {
            background-color: #f8f9fa;
        }
        
        .groups-dropdown-item input[type="checkbox"] {
            margin-right: 10px;
            cursor: pointer;
            width: 16px;
            height: 16px;
        }
        
        .groups-dropdown-item label {
            margin: 0;
            cursor: pointer;
            flex: 1;
            font-size: 13px;
            color: #495057;
            user-select: none;
        }
        
        .groups-dropdown-item input[type="checkbox"]:checked + label {
            color: #41bfad;
            font-weight: 500;
        }
        
        @media (max-width: 768px) {
            .master-settings-container {
                padding: 10px;
            }
            
            .page-header {
                padding: 15px 0;
            }
            
            .page-header h1 {
                font-size: 22px;
            }
            
            .page-header p {
                font-size: 13px;
            }
            
            .stats-container {
                flex-wrap: wrap;
                gap: 20px;
            }
            
            .stat-item {
                flex-direction: column;
                align-items: flex-start;
                gap: 5px;
            }
            
            .stat-number {
                font-size: 32px;
            }
            
            .stat-divider {
                display: none;
            }
            
            .coaches-table th,
            .coaches-table td {
                padding: 10px;
                font-size: 13px;
            }
            
            .coach-avatar,
            .coach-avatar-placeholder {
                width: 40px;
                height: 40px;
                font-size: 16px;
            }
        }
    /* Styles pour le modal */
    .coach-modal {
        position: fixed;
        z-index: 99999 !important;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.5);
        animation: fadeIn 0.3s;
        display: none !important;
        align-items: flex-start;
        justify-content: center;
        padding-top: 50px;
    }
    
    .coach-modal.show {
        display: flex !important;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    .coach-modal .modal-content {
        background-color: #fefefe;
        margin: 0;
        padding: 0;
        border-radius: 12px;
        width: 90%;
        max-width: 600px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        animation: slideDown 0.3s;
        position: relative;
        z-index: 100000;
        pointer-events: auto;
    }
    
    @keyframes slideDown {
        from {
            transform: translateY(-50px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    .coach-modal .modal-header {
        padding: 20px 25px;
        background: linear-gradient(135deg, #41bfad 0%, #36a898 100%);
        color: white;
        border-radius: 12px 12px 0 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .coach-modal .modal-header h2 {
        margin: 0;
        font-size: 20px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .coach-modal .modal-close {
        background: none;
        border: none;
        color: white;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
        padding: 0;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background 0.3s;
        z-index: 100001;
        position: relative;
    }
    
    .coach-modal .modal-close:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .coach-modal .modal-body {
        padding: 25px;
    }
    
    .coach-modal .modal-info {
        background: #e7f7f5;
        border-left: 4px solid #41bfad;
        padding: 15px;
        margin-bottom: 20px;
        border-radius: 4px;
        color: #2c3e50;
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }
    
    .coach-modal .modal-info i {
        color: #41bfad;
        margin-top: 2px;
    }
    
    .coach-modal .club-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .coach-modal .club-item {
        background: white;
        border: 2px solid #e9ecef;
        padding: 15px;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        gap: 12px;
        position: relative;
        z-index: 100002;
    }
    
    .coach-modal .club-item:hover {
        border-color: #41bfad;
        background: #f8fdfc;
        transform: translateX(5px);
    }
    
    .coach-modal .club-item i {
        color: #41bfad;
        font-size: 20px;
    }
    
    .coach-modal .club-item-content {
        flex: 1;
    }
    
    .coach-modal .club-item-name {
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 4px;
    }
    
    .coach-modal .club-item-badge {
        background: #41bfad;
        color: white;
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 11px;
        font-weight: 600;
    }
    
    .coach-modal .modal-footer {
        padding: 15px 25px;
        background: #f8f9fa;
        border-radius: 0 0 12px 12px;
        display: flex;
        justify-content: flex-end;
        gap: 10px;
    }
    
    .coach-modal .btn-cancel {
        background: #6c757d;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 6px;
        cursor: pointer;
        font-weight: 600;
        transition: background 0.3s;
        position: relative;
        z-index: 100001;
    }
    
    .coach-modal .btn-cancel:hover {
        background: #5a6268;
    }
    
    .coach-modal .btn-confirm {
        background: #41bfad;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 6px;
        cursor: pointer;
        font-weight: 600;
        transition: background 0.3s;
        position: relative;
        z-index: 100001;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }
    
    .coach-modal .btn-confirm:hover {
        background: #36a898;
    }
.coach-modal {
    position: fixed;
    z-index: 99999 !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
    display: none !important;
    align-items: flex-start;
    justify-content: center;
    padding-top: 50px;
}

.coach-modal.show {
    display: flex !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.coach-modal .modal-content {
    background-color: #fefefe;
    margin: 0;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s;
    position: relative;
    z-index: 100000;
    pointer-events: auto;
}

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

.coach-modal .modal-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, #41bfad 0%, #36a898 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coach-modal .modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.coach-modal .modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
    z-index: 100001;
    position: relative;
}

.coach-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.coach-modal .modal-body {
    padding: 25px;
}

.coach-modal .modal-info {
    background: #e7f7f5;
    border-left: 4px solid #41bfad;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    color: #2c3e50;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.coach-modal .modal-info i {
    color: #41bfad;
    margin-top: 2px;
}

.coach-modal .club-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.coach-modal .club-item {
    background: white;
    border: 2px solid #e9ecef;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 100002;
}

.coach-modal .club-item:hover {
    border-color: #41bfad;
    background: #f8fdfc;
    transform: translateX(5px);
}

.coach-modal .club-item i {
    color: #41bfad;
    font-size: 20px;
}

.coach-modal .club-item-content {
    flex: 1;
}

.coach-modal .club-item-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.coach-modal .club-item-badge {
    background: #41bfad;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.coach-modal .modal-footer {
    padding: 15px 25px;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.coach-modal .btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    position: relative;
    z-index: 100001;
}

.coach-modal .btn-cancel:hover {
    background: #5a6268;
}

.coach-modal .btn-confirm {
    background: #41bfad;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    position: relative;
    z-index: 100001;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.coach-modal .btn-confirm:hover {
    background: #36a898;
}
</style>
