/* RUCV Frontend Styles */

.rucv-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.rucv-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #001b2b;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.rucv-header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 300;
}

.rucv-header p {
    margin: 10px 0 0 0;
    font-size: 1.1em;
    opacity: 0.9;
}

.rucv-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.rucv-section {
    padding: 25px;
    border-bottom: 1px solid #eee;
}

.rucv-section:last-child {
    border-bottom: none;
}

.rucv-section h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.5em;
    font-weight: 600;
}

.rucv-display {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin: 15px 0;
    transition: all 0.3s ease;
}

.rucv-display:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);

}

.rucv-display p {
    margin: 0;
    color: #666;
    font-size: 1em;
    line-height: 1.6;
}

.rucv-button {
    display: inline-block;
    padding: 12px 24px;
    background: #001b2b;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.rucv-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(111, 137, 54, 0.4);
    color: white;
    text-decoration: none;
}

.rucv-button-secondary {
    background: #6c757d;
}

.rucv-button-secondary:hover {
    background: #5a6268;
    box-shadow: 0 6px 12px rgba(108, 117, 125, 0.4);
        color: rgb(189, 189, 190);
}

.rucv-button-success {
    background: #28a745;
}

.rucv-button-success:hover {
    background: #218838;
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.4);
        color: rgb(189, 189, 190);
}

.rucv-button-danger {
    background: #dc3545;
}

.rucv-button-danger:hover {
    background: #c82333;
    box-shadow: 0 6px 12px rgba(220, 53, 69, 0.4);
        color: rgb(189, 189, 190);
}

.rucv-form {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.rucv-form-group {
    margin-bottom: 20px;
}

.rucv-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.rucv-form-group input[type="text"],
.rucv-form-group input[type="email"],
.rucv-form-group input[type="url"],
.rucv-form-group input[type="password"],
.rucv-form-group input[type="number"],
.rucv-form-group textarea,
.rucv-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.rucv-form-group input:focus,
.rucv-form-group textarea:focus,
.rucv-form-group select:focus {
    outline: none;
    border-color: #001b2b;
    box-shadow: 0 0 0 3px rgba(111, 137, 54, 0.1);
}

.rucv-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.rucv-alert {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 6px;
    border-left: 4px solid;
    font-weight: 500;
}

.rucv-alert-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.rucv-alert-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.rucv-alert-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.rucv-alert-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.rucv-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rucv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.rucv-card-header {
    padding: 20px;
    background: #001b2b;
    color: white;
}

.rucv-card-header h3 {
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
}

.rucv-card-body {
    padding: 20px;
}

.rucv-card-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.rucv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.rucv-flex {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rucv-flex-center {
    justify-content: center;
}

.rucv-flex-between {
    justify-content: space-between;
}

.rucv-text-center {
    text-align: center;
}

.rucv-text-right {
    text-align: right;
}

.rucv-mb-0 { margin-bottom: 0; }
.rucv-mb-1 { margin-bottom: 10px; }
.rucv-mb-2 { margin-bottom: 20px; }
.rucv-mb-3 { margin-bottom: 30px; }

.rucv-mt-0 { margin-top: 0; }
.rucv-mt-1 { margin-top: 10px; }
.rucv-mt-2 { margin-top: 20px; }
.rucv-mt-3 { margin-top: 30px; }

.rucv-sponsor.rucv-sponsor--vertical {
    margin-bottom: 15px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .rucv-container {
        padding: 15px;
    }
    
    .rucv-header h1 {
        font-size: 2em;
    }
    
    .rucv-section {
        padding: 20px;
    }
    
    .rucv-grid {
        grid-template-columns: 1fr;
    }
    
    .rucv-flex {
        flex-direction: column;
        align-items: stretch;
    }
    
    .rucv-button {
        width: 100%;
        text-align: center;
    }
}

/* Styles pour la table des joueurs - Style SportsPress */
.rucv-joueurs-club {
    margin-bottom: 20px;
}

.rucv-joueurs-club h3 {
    margin: 0;
    padding: 15px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-bottom: none;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    display: table;
    width: 100%;
    color: #333;
}

.rucv-players-table {
    margin: 0;
    background: #fff;
    border-collapse: collapse;
    border: 1px solid #e5e5e5;
    width: 100%;
}

.rucv-players-table tr {
    border: none;
}

.rucv-players-table th,
.rucv-players-table td {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    border: 1px solid #e5e5e5;
    padding: 5px 10px;
    text-align: center;
}

.rucv-players-table th {
    font-size: 12px;
    font-weight: 500;
    background: #fff;
    color: #999;
    border: none;
}

.rucv-players-table .data-name {
    text-align: left;
}

/* Styles responsive SportsPress pour la table */
@media only screen and (max-width: 800px) {
    .rucv-players-table,
    .rucv-players-table thead,
    .rucv-players-table tbody,
    .rucv-players-table th,
    .rucv-players-table td,
    .rucv-players-table tr {
        display: block;
    }
    
    .rucv-players-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .rucv-players-table tbody tr {
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .rucv-players-table .data-number,
    .rucv-players-table .data-rank {
        width: auto !important;
    }
    
    .rucv-players-table th,
    .rucv-players-table td {
        text-align: center !important;
    }
    
    .rucv-players-table td {
        border: none;
        position: relative;
        padding-left: 50%;
        vertical-align: middle;
    }
    
    .rucv-players-table td:before {
        position: absolute;
        content: attr(data-label);
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .rucv-container {
        padding: 15px;
    }
    
    .rucv-header h1 {
        font-size: 2em;
    }
    
    .rucv-section {
        padding: 20px;
    }
    
    .rucv-grid {
        grid-template-columns: 1fr;
    }
    
    .rucv-flex {
        flex-direction: column;
        align-items: stretch;
    }
    
    .rucv-button {
        width: 100%;
        text-align: center;
    }
    
    .rucv-players-table {
        font-size: 12px;
    }
    
    .rucv-players-table th,
    .rucv-players-table td {
        padding: 8px 6px;
    }
    
    .rucv-players-table th {
        font-size: 12px;
    }
    
    .rucv-players-table td {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .rucv-header {
        padding: 15px;
    }
    
    .rucv-header h1 {
        font-size: 1.8em;
    }
    
    .rucv-section {
        padding: 15px;
    }
    
    .rucv-form {
        padding: 20px;
    }
    
    .rucv-joueurs-club {
        padding: 15px;
    }
    
    .rucv-joueurs-club h3 {
        font-size: 1.3em;
    }
    
    .rucv-players-table {
        font-size: 11px;
    }
    
    .rucv-players-table th,
    .rucv-players-table td {
        padding: 6px 4px;
    }
}

/* ========================================
   ESPACE TEAM MANAGER
   ======================================== */

.rucv-tm-wrapper {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.rucv-tm-header {
display: none;
}

.rucv-tm-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
    font-weight: 300;
}

.rucv-tm-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1em;
}

/* Bouton de déconnexion Team Manager / Arbitre */
.rucv-tm-logout-button {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.rucv-tm-logout-button a {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    color: white !important;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.rucv-tm-logout-button a:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.rucv-tm-logout-button a:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.rucv-tm-nav {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.rucv-tm-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.rucv-tm-nav li {
    margin: 0;
}

.rucv-tm-nav a {
    display: inline-block;
    padding: 12px 24px;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.rucv-tm-nav a:hover,
.rucv-tm-nav a.active {
    background: #001b2b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111, 137, 54, 0.3);
}

/* Dashboard Cards */
.rucv-tm-dashboard {
    margin-bottom: 30px;
}

.rucv-tm-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.rucv-tm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.rucv-tm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.rucv-tm-card-icon {
    font-size: 2em;
    margin-bottom: 15px;
    opacity: 0.2;
}

.rucv-tm-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.3em;
    color: #333;
}

.rucv-tm-card p {
    color: #666;
    margin: 0 0 20px 0;
}

.rucv-tm-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Table des joueurs */
.rucv-tm-players-table {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.rucv-tm-players-table table {
    width: 100%;
    border-collapse: collapse;
}

.rucv-tm-players-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
}

.rucv-tm-players-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    color: #333;
}

.rucv-tm-players-table tr:last-child td {
    border-bottom: none;
}

.rucv-tm-players-table tr:hover {
    background: #f8f9fa;
}

.rucv-tm-player-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.rucv-tm-actions {
    display: flex;
    gap: 8px;
}

.rucv-tm-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.rucv-tm-btn-primary {
    background: #001b2b;
    color: white;
}

.rucv-tm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: rgb(189, 189, 190);
}

.rucv-tm-btn-secondary {
    background: #6c757d;
    color: white;
}

.rucv-tm-btn-secondary:hover {
    background: #5a6268;
    color: rgb(189, 189, 190);
}

.rucv-tm-btn-danger {
    background: #dc3545;
    color: white;
}

.rucv-tm-btn-danger:hover {
    background: #c82333;
    color: rgb(189, 189, 190);
}

.rucv-tm-btn-small {
    padding: 6px 12px;
    font-size: 13px;
}

/* Formulaires */
.rucv-tm-form {
    padding: 30px 0px;
    width: 100%;
    box-sizing: border-box;
}

.rucv-tm-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.rucv-tm-form-group {
    margin-bottom: 20px;
}

.rucv-tm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.rucv-tm-form-group input[type="text"],
.rucv-tm-form-group input[type="email"],
.rucv-tm-form-group input[type="number"],
.rucv-tm-form-group input[type="file"],
.rucv-tm-form-group select,
.rucv-tm-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.rucv-tm-form-group input:focus,
.rucv-tm-form-group select:focus,
.rucv-tm-form-group textarea:focus {
    outline: none;
    border-color: #001b2b;
    box-shadow: 0 0 0 3px rgba(111, 137, 54, 0.1);
}

.rucv-tm-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.rucv-tm-form-help {
    font-size: 13px;
    color: #6c757d;
    margin-top: 5px;
}

/* File upload */
.rucv-tm-file-upload {
    position: relative;
    border: 2px dashed #e9ecef;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.rucv-tm-file-upload:hover {
    border-color: #001b2b;
    background: #f8f9ff;
}

.rucv-tm-file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.rucv-tm-file-upload-icon {
    font-size: 3em;
    color: #001b2b;
    margin-bottom: 10px;
}

/* Alerts */
.rucv-tm-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.rucv-tm-alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.rucv-tm-alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.rucv-tm-alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.rucv-tm-alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Stats rapides */
.rucv-tm-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.rucv-tm-stat {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.rucv-tm-stat-value {
    font-size: 2.5em;
    font-weight: 700;
    color: #001b2b;
    margin: 0;
}

.rucv-tm-stat-label {
    font-size: 0.9em;
    color: #6c757d;
    margin: 5px 0 0 0;
}

/* Loading */
.rucv-tm-loading {
    text-align: center;
    padding: 40px;
}

.rucv-tm-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #001b2b;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: rucv-spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes rucv-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Team Manager */
@media (max-width: 768px) {
    .rucv-tm-wrapper {
        padding: 0 15px;
        margin: 20px auto;
    }
    
    .rucv-tm-header {
        padding: 20px;
    }
    
    .rucv-tm-header h1 {
        font-size: 1.8em;
    }
    
    .rucv-tm-logout-button {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .rucv-tm-logout-button a {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .rucv-tm-nav ul {
        flex-direction: column;
    }
    
    .rucv-tm-nav a {
        width: 100%;
        text-align: center;
    }
    
    .rucv-tm-dashboard {
        grid-template-columns: 1fr;
    }
    
    .rucv-tm-form-row {
        grid-template-columns: 1fr;
    }
    
    .rucv-tm-players-table {
        overflow-x: auto;
    }
    
    .rucv-tm-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rucv-tm-actions {
        flex-direction: column;
    }
    
    .rucv-tm-btn {
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   CLASSES UTILITAIRES TEAM MANAGER
   ======================================== */

/* Lists */
.rucv-tm-list-unstyled {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.rucv-tm-list-item {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.rucv-tm-list-item a {
    color: #001b2b;
    text-decoration: none;
    float: right;
    font-size: 13px;
}

/* Team list item */
.rucv-tm-team-list-item {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

/* Player count display */
.rucv-tm-player-count {
    font-size: 2em;
    font-weight: bold;
    color: #001b2b;
    margin: 0;
}

.rucv-tm-player-count-label {
    color: #666;
    margin: 5px 0 0 0;
}

/* Admin links */
.rucv-tm-admin-link {
    color: #001b2b;
    text-decoration: none;
}

/* Match card */
.rucv-tm-match-card {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #001b2b;
}

.rucv-tm-match-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
}

.rucv-tm-match-title {
    margin: 0 0 10px 0;
    color: #2d3748;
}

.rucv-tm-match-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.rucv-tm-match-date {
    color: #001b2b;
    font-weight: 600;
}

.rucv-tm-match-teams {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.rucv-tm-match-team-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.rucv-tm-match-team-badge.is-mine {
    background: #48bb78;
    color: white;
}

.rucv-tm-match-team-badge.is-opponent {
    background: #e2e8f0;
    color: #2d3748;
}

.rucv-tm-match-encode-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    display: inline-block;
}

.rucv-tm-match-actions {
    text-align: right;
}

/* Info sections */
.rucv-tm-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.rucv-tm-info-title {
    margin: 0 0 10px 0;
    color: #001b2b;
}

.rucv-tm-info-text {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Empty state */
.rucv-tm-empty-state {
    text-align: center;
    border-radius: 8px;
}

.rucv-tm-empty-icon {
    font-size: 3em;
    opacity: 0.3;
    margin-bottom: 15px;
}

.rucv-tm-empty-text {
    margin: 0;
    color: #999;
}

/* Divider */
.rucv-tm-divider {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.rucv-tm-divider-sm {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.rucv-tm-divider-center {
    text-align: center;
}

/* CSV Instructions */
.rucv-tm-csv-instructions {
    background: #001b2b;
    color: white;
    margin-bottom: 30px;
}

.rucv-tm-csv-title {
    margin: 0 0 15px 0;
    color: white;
}

.rucv-tm-csv-text {
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.rucv-tm-csv-list {
    margin: 0;
    padding-left: 20px;
    opacity: 0.9;
}

.rucv-tm-csv-file-input {
    width: 100%;
    padding: 15px;
    border: 2px dashed #001b2b;
    border-radius: 8px;
    background: #f8f9fa;
    cursor: pointer;
}

/* Pre code block */
.rucv-tm-code-block {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 13px;
    margin: 0;
    border: 2px solid #e9ecef;
}

/* Warning box */
.rucv-tm-warning-box {
    margin-top: 20px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.rucv-tm-warning-title {
    margin: 0 0 15px 0;
}

.rucv-tm-warning-list {
    margin: 0;
    padding-left: 20px;
    color: #856404;
}

/* Tip box */
.rucv-tm-tip-box {
    margin-top: 20px;
}

.rucv-tm-tip-title {
    margin: 0 0 15px 0;
}

.rucv-tm-tip-text {
    margin: 0;
    color: #666;
}

/* Player table filter */
.rucv-tm-filter-box {
    margin-bottom: 20px;
    padding: 15px;
}

.rucv-tm-filter-label {
    margin-right: 10px;
    font-weight: 600;
}

.rucv-tm-filter-select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 2px solid #e9ecef;
}

/* Action bar */
.rucv-tm-action-bar {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* Player photo placeholder */
.rucv-tm-player-photo-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* Summary bar */
.rucv-tm-summary-bar {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    color: #666;
}

/* Team info grid */
.rucv-tm-team-info-grid {
    align-items: start;
}

.rucv-tm-team-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    margin-bottom: 2rem;
}

.rucv-tm-team-logo-placeholder {
    width: 120px;
    height: 120px;
    background: #001b2b;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: white;
}

.rucv-tm-team-title {
    margin: 0 0 10px 0;
    color: #2d3748;
}

.rucv-tm-team-division {
    margin: 0 0 15px 0;
    color: #718096;
    font-size: 16px;
}

.rucv-tm-team-status {
    margin: 0 0 10px 0;
}

.rucv-tm-team-status-ok {
    color: #48bb78;
    font-weight: 600;
}

.rucv-tm-team-status-error {
    color: #f56565;
    font-weight: 600;
}

.rucv-tm-team-effectif {
    margin: 0;
}

.rucv-tm-team-actions {
    /* No specific styles, flex handled by parent */
}

.rucv-tm-team-action-btn {
    display: inline-block;
    margin-bottom: 10px;
}

/* Not in order warning */
.rucv-tm-not-in-order {
    margin-top: 20px;
    padding: 15px;
    background: #fff5f5;
    border-left: 4px solid #f56565;
    border-radius: 6px;
}

.rucv-tm-not-in-order-title {
    color: #c53030;
}

.rucv-tm-not-in-order-text {
    margin: 10px 0 0 0;
    color: #742a2a;
}

/* Shortcuts grid */
.rucv-tm-shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.rucv-tm-shortcut-link {
    color: #001b2b;
    text-decoration: none;
    padding: 10px;
    background: white;
    border-radius: 6px;
    display: block;
}

.rucv-tm-shortcut-link:hover {
    background: #f8f9fa;
}

/* Staff info grid */
.rucv-tm-staff-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.rucv-tm-staff-role {
    color: #001b2b;
}

.rucv-tm-staff-description {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 14px;
}

/* Staff section title */
.rucv-tm-section-title {
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

/* Back button container */
.rucv-tm-back-container {
    margin-top: 20px;
}

/* Required indicator */
.rucv-tm-required {
    color: red;
}

/* ========================================
   STYLES POUR LES TABS TEAM MANAGER
   ======================================== */

.rucv-tm-tabs {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 30px;
}

.rucv-tm-tab-buttons {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    overflow: hidden;
}

.rucv-tm-tab-button {
    flex: 1;
    padding: 15px 24px;
    background: transparent;
    border: none;
    border-right: 1px solid #e9ecef;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.rucv-tm-tab-button:last-child {
    border-right: none;
}

.rucv-tm-tab-button:hover:not(.active) {
    background: #e9ecef;
    color: #495057;
}

.rucv-tm-tab-button.active {
    background: white;
    color: #001b2b;
    font-weight: 600;
}

.rucv-tm-tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #001b2b;
}

.rucv-tm-tab-content {
    display: none;
    padding: 30px;
    background: white;
    animation: fadeIn 0.3s ease-in-out;
}

.rucv-tm-tab-content.active {
    display: block;
}

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

/* Responsive pour les tabs */
@media (max-width: 768px) {
    .rucv-tm-tab-buttons {
        flex-direction: column;
    }
    
    .rucv-tm-tab-button {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        padding: 12px 20px;
    }
    
    .rucv-tm-tab-button:last-child {
        border-bottom: none;
    }
    
    .rucv-tm-tab-button.active::after {
        height: 0;
        width: 3px;
        right: auto;
        top: 0;
        bottom: 0;
    }
    
    .rucv-tm-tab-content {
        padding: 20px;
    }
}

/* Display inline block */
.rucv-tm-display-block {
    display: block;
}

.rucv-tm-display-inline-block {
    display: inline-block;
}

/* Margins */
.rucv-tm-mb-10 {
    margin-bottom: 10px;
}

.rucv-tm-mb-15 {
    margin-bottom: 15px;
}

.rucv-tm-mb-20 {
    margin-bottom: 20px;
}

.rucv-tm-mb-30 {
    margin-bottom: 30px;
}

.rucv-tm-mt-20 {
    margin-top: 20px;
}

.rucv-tm-mt-30 {
    margin-top: 30px;
}

/* Padding */
.rucv-tm-p-12-30 {
    padding: 12px 30px;
}

/* Font sizes */
.rucv-tm-fs-16 {
    font-size: 16px;
}

.rucv-tm-ml-10 {
    margin-left: 10px;
}


/* Quick Links */
.rucv-tm-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.rucv-tm-quick-link {
    display: block;
    padding: 15px 20px;
    background: #001b2b;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rucv-tm-quick-link:hover {
    background: #001b2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
}

/* ============================================
   Calendrier des Rencontres
   ============================================ */

.rucv-calendrier-container {
    margin: 20px 0;
}

.rucv-calendrier-table {
    width: 100%;
    margin-bottom: 0;
}

.rucv-calendrier-table thead th {
    background-color: #f5f5f5;
    font-weight: bold;
    border-bottom: 2px solid #ddd;
}

.rucv-calendrier-table tbody td {
    vertical-align: middle;
}

.rucv-calendrier-table .neutre {
    /* Style par défaut */
}

.rucv-calendrier-table .MonEquipe {
    background-color: #f0f8ff;
}

.rucv-calendrier-table .warning {
    background-color: #fff3cd;
}

.rucv-calendrier-table .text-center {
    text-align: center;
}

.rucv-calendrier-table .text-left {
    text-align: left;
}

.rucv-calendrier-table .red-tooltip {
    cursor: help;
    margin-left: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .rucv-calendrier-table {
        font-size: 0.9em;
    }
    
    .rucv-calendrier-table th,
    .rucv-calendrier-table td {
        padding: 8px 4px;
    }
}

/* ========================================
   STYLES UTILITAIRES
   ======================================== */

   .rucv-text-center {
    text-align: center;
}

.rucv-text-right {
    text-align: right;
}

.rucv-mt-20 {
    margin-top: 20px;
}

.rucv-mb-20 {
    margin-bottom: 20px;
}

.rucv-ml-10 {
    margin-left: 10px;
}

.rucv-mr-10 {
    margin-right: 10px;
}

.rucv-p-20 {
    padding: 20px;
}

.rucv-hidden {
    display: none !important;
}

.rucv-visible {
    display: block !important;
}

.referree-denominations-docs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(48%, 1fr));
    grid-column-gap: 30px;
    grid-row-gap: 30px;
}

.referree-denominations-doc {
    padding: 15px 0;
    margin-bottom: 15px;
    justify-self: stretch;   
}

.denominations-doc-wrapper {
    height: 100%;
    display: flex;
    align-items: stretch;
    transition: color ease-in 0.3s;
}

.denominations-doc-wrapper .icon {
    margin-bottom: 0;
    width: 10%;
    padding: 15px;
    box-sizing: border-box;
}

.denominations-doc-wrapper .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.doc_content {
    margin-bottom: 0;
    width: 90%;
    padding: 15px;
    box-sizing: border-box;
    background: rgba(245, 244, 244, 0.95);
    /* border-left: 3px solid #E2DFDF; */
    /* border-left: 3px solid #ff5d00; */
    transition: background ease-in 0.3s;
}

.doc_content.doc_soccer {
    border-left: 3px solid #5A7004;
}

.doc_content.doc_tennis {
    border-left: 3px solid #f0ad4e;
}

.doc_content.doc_table-tennis {
    border-left: 3px solid #357ebd;
}

.denominations-doc-wrapper:hover .doc_content {
    background: #E2DFDF;
}

.avada-password-form { max-width: 480px; margin: 2rem auto; }
.avada-password-form .fusion-form-row { margin-bottom: 1rem; }
.avada-password-form .fusion-form-input { width: 100%; padding: .75rem 1rem; }
.avada-password-form .fusion-button { display: inline-block; }

/* ========================================
   SECTION COORDONNÉES ARBITRE
   ======================================== */

.rucv-coordinates-form {
    margin-top: 20px;
}

.rucv-coordinates-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rucv-form-field {
    display: flex;
    flex-direction: column;
}

.rucv-form-field label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.rucv-form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.rucv-form-input:focus {
    outline: none;
    border-color: #001b2b;
    box-shadow: 0 0 0 3px rgba(111, 137, 54, 0.1);
}

.rucv-form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.rucv-form-field-half {
    flex: 1;
    min-width: 200px;
}

.rucv-form-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.rucv-coordinates-message {
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
}

.rucv-message-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.rucv-message-error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

/* ========================================
   SECTION CODE D'ACCÈS ARBITRE
   ======================================== */

.rucv-access-code-section {
    margin-top: 20px;
}

.rucv-access-code-info {
    margin-bottom: 20px;
}

.rucv-access-code-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.rucv-current-code-display {
    margin: 20px 0;
}

.rucv-current-code-display label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.rucv-code-display-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.rucv-code-display-box code {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 600;
    color: #001b2b;
    background: transparent;
    padding: 0;
    border: none;
    word-break: break-all;
}

.rucv-copy-code-btn {
    padding: 6px 12px;
    background-color: #001b2b;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.rucv-copy-code-btn:hover {
    background-color: #1d2441;
}

.rucv-copy-code-btn:active {
    transform: scale(0.98);
}

.rucv-no-code-message {
    padding: 15px;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    margin: 20px 0;
}

.rucv-no-code-message p {
    margin: 0;
    color: #856404;
    font-size: 14px;
}

.rucv-code-warning {
    margin-top: 15px;
    padding: 12px 15px;
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

.rucv-code-warning p {
    margin: 0;
    color: #856404;
    font-size: 14px;
    line-height: 1.5;
}

.rucv-access-code-message {
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
}

/* Responsive pour la section coordonnées */
@media (max-width: 768px) {
    .rucv-form-row {
        flex-direction: column;
    }
    
    .rucv-form-field-half {
        min-width: 100%;
    }
    
    .rucv-form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .rucv-coordinates-message {
        width: 100%;
        text-align: center;
    }
    
    .rucv-code-display-box {
        flex-direction: column;
        align-items: stretch;
    }
    
    .rucv-copy-code-btn {
        width: 100%;
    }
    
    .rucv-access-code-message {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}

/* ========================================
   STYLES POUR MATCHS PASSÉS
   ======================================== */

.rucv-tm-past-matches {
    margin-top: 30px;
}

.rucv-tm-season-filter {
    display: flex;
    align-items: center;
    gap: 25px;
}

.rucv-tm-season-select {
    padding: 8px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #2d3748;
    cursor: pointer;
    min-width: 200px;
}

.rucv-tm-season-select:focus {
    outline: none;
    border-color: #001b2b;
    box-shadow: 0 0 0 3px rgba(34, 31, 90, 0.1);
}

.rucv-tm-past-match-card {
    border-left-color: #4a5568;
}

.rucv-tm-match-facts {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.rucv-tm-match-facts-title {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.rucv-tm-match-score {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.rucv-tm-match-score-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 15px;
    align-items: center;
    text-align: center;
}

.rucv-tm-match-score-team {
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.rucv-tm-match-score-separator {
    font-weight: bold;
    color: #001b2b;
    font-size: 18px;
}

.rucv-tm-match-score-value {
    font-size: 24px;
    font-weight: bold;
    color: #001b2b;
}

.rucv-tm-match-facts-teams {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.rucv-tm-match-facts-team {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #001b2b;
}

.rucv-tm-match-facts-team-title {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 15px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.rucv-tm-match-facts-item {
    margin-bottom: 15px;
}

.rucv-tm-match-facts-item:last-child {
    margin-bottom: 0;
}

.rucv-tm-match-facts-icon {
    font-size: 18px;
    margin-right: 8px;
    vertical-align: middle;
}

.rucv-tm-match-facts-item strong {
    color: #2d3748;
    font-size: 14px;
}

.rucv-tm-match-facts-list {
    margin: 8px 0 0 0;
    padding-left: 25px;
    list-style: none;
}

.rucv-tm-match-facts-list li {
    padding: 4px 0;
    color: #4a5568;
    font-size: 13px;
    position: relative;
}

.rucv-tm-match-facts-list li:before {
    content: "•";
    color: #001b2b;
    font-weight: bold;
    position: absolute;
    left: -15px;
}

.rucv-tm-match-facts-empty {
    margin: 0;
    color: #999;
    font-size: 13px;
    font-style: italic;
}

.rucv-tm-past-matches-loader {
    text-align: center;
    padding: 30px;
    margin-top: 20px;
}

.rucv-tm-loader-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #001b2b;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.rucv-tm-past-matches-loader p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.rucv-tm-past-matches-no-more {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    color: #999;
    font-size: 14px;
    font-style: italic;
}

/* Responsive pour les matchs passés */
@media (max-width: 768px) {
    .rucv-tm-match-facts-teams {
        grid-template-columns: 1fr;
    }
    
    .rucv-tm-match-score-row {
        grid-template-columns: 1fr auto 1fr;
        gap: 10px;
    }
    
    .rucv-tm-match-score-value {
        font-size: 20px;
    }
    
    .rucv-tm-season-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .rucv-tm-season-select {
        width: 100%;
    }
}