/**
 * Styles pour les pages de licences
 */

/* En-tête avec icône */
.account-heading-with-icon {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
}

.heading-icon {
    margin-right: 1.5rem;
    color: var(--primary-color);
    font-size: 2.5rem; /* Taille adaptée à l'en-tête */
    display: flex;
    align-items: center;
    justify-content: center;
}

.heading-text {
    flex: 1;
}

.heading-text h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.heading-text p {
    color: #6b7280;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.4;
}

/* Carte de licences */
.account-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Style pour le message "module en construction" */
.module-coming-soon {
    text-align: center;
    padding: 3rem 1rem;
    background-color: #f9fafb;
    border-radius: 8px;
    margin: 2rem 0;
}

.module-coming-soon i {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.module-coming-soon h2 {
    color: #374151;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.module-coming-soon p {
    color: #6b7280;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 1rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .account-heading-with-icon {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .heading-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .heading-text {
        width: 100%;
    }
    
    .heading-text h1 {
        font-size: 1.75rem;
    }
    
    .account-card {
        padding: 1.5rem;
    }
    
    .module-coming-soon {
        padding: 2rem 1rem;
    }
    
    .module-coming-soon h2 {
        font-size: 1.3rem;
    }
    
    .module-coming-soon p {
        font-size: 1rem;
    }
}

/* Styles supplémentaires pour la gestion des licences */

.licence-container {
    max-width: 900px;
    margin: 20px auto;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #e5e7eb;
    padding: 0 20px;
    margin-bottom: 20px;
}

.tab {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.3s ease;
}

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab:hover:not(.active) {
    color: #374151;
}

.tab-content {
    display: none;
    padding: 20px;
}

.tab-content.active {
    display: block;
}

.add-tab {
    background: #f3f4f6;
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 5px 5px 0 0;
}

.add-tab:hover {
    background: #e5e7eb;
}

.licence-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
}

.cyclist-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.licence-info {
    flex: 1;
}

.age-display {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.photo-upload-container {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    margin-bottom: 20px;
    align-items: start;
}

.photo-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-row: span 2;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-photo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ccc;
}

.upload-controls {
    display: flex;
    flex-direction: column;
}

.upload-btn {
    display: inline-block;
    padding: 10px 15px;
    background: var(--primary-color);
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: fit-content;
}

.upload-btn:hover {
    background: #0f4e9b;
}

.upload-info {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 5px;
}

/* Nouveaux styles pour les informations de statut et groupe */
.licence-status-container {
    margin-top: 10px;
}

.licence-status {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.licence-status.encadrant {
    background-color: #dbeafe;
    color: #1e40af;
    border-left: 3px solid #2563eb;
}

.licence-status.groupe {
    background-color: #dcfce7;
    color: #166534;
    border-left: 3px solid #22c55e;
}

.licence-status.no-groupe {
    background-color: #f3f4f6;
    color: #6b7280;
    border-left: 3px solid #9ca3af;
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.left-buttons, .right-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #0f4e9b;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.demande-pending {
    color: #dc2626;
    font-style: italic;
    text-align: center;
    margin: 10px 0;
    padding: 10px;
    background: #fee2e2;
    border-radius: 5px;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    position: relative;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background: #fee2e2;
    color: #dc2626;
}

.alert-close {
    position: absolute;
    right: 15px;
    top: 15px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

.alert-close:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .photo-upload-container {
        grid-template-columns: 1fr;
    }
    
    .photo-preview {
        margin: 0 auto;
        grid-row: 1;
    }
    
    .upload-controls {
        grid-row: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .licence-status-container {
        grid-row: 3;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .left-buttons, .right-buttons {
        justify-content: center;
    }
}

.upload-btn.disabled {
    background-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    pointer-events: none;
}

.licence-status-info {
    color: #4b5563;
    font-style: italic;
    padding: 10px;
    background-color: #f3f4f6;
    border-radius: 5px;
    text-align: center;
}

.form-disabled input, 
.form-disabled select, 
.form-disabled textarea {
    background-color: #f3f4f6;
    border-color: #e5e7eb;
    color: #6b7280;
    cursor: not-allowed;
}

.form-disabled .photo-upload-container {
    opacity: 0.7;
}

/* CSS à ajouter pour la gestion des documents - mes_licences */

/* Alerte globale pour les documents */
.documents-global-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
}

.documents-global-warning .warning-icon {
    font-size: 2.5rem;
    color: #f59e0b;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

.documents-global-warning .warning-content h3 {
    margin: 0 0 8px 0;
    color: #92400e;
    font-size: 1.3rem;
    font-weight: 600;
}

.documents-global-warning .warning-content p {
    margin: 0 0 15px 0;
    color: #7c2d12;
    font-size: 1rem;
}

.documents-global-warning .warning-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-warning {
    background-color: #f59e0b;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn-warning:hover {
    background-color: #d97706;
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #4b5563;
    color: white;
    text-decoration: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Modal des documents */
.documents-modal {
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.documents-modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.documents-modal .modal-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.documents-modal .modal-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
}

.close-modal {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: rgba(255,255,255,0.8);
}

.close-modal:hover {
    color: white;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background-color: #f9fafb;
    border-radius: 0 0 12px 12px;
}

/* Résumé des documents */
.documents-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid;
}

.summary-card.incomplete {
    background-color: #fef2f2;
    border-color: #fca5a5;
    color: #7f1d1d;
}

.summary-card.complete {
    background-color: #f0fdf4;
    border-color: #86efac;
    color: #14532d;
}

.summary-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.summary-label {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Liste des licences détaillées */
.licences-details-list h4 {
    color: #374151;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

.licence-detail-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.licence-detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.licence-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.licence-info h5 {
    margin: 0 0 5px 0;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

.licence-status {
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-active {
    background-color: #d1fae5;
    color: #065f46;
}

.status-en_attente {
    background-color: #fef3c7;
    color: #92400e;
}

.status-en_cours {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Progress simple */
.documents-progress-simple {
    text-align: right;
}

.progress-text {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 5px;
}

.progress-bar {
    width: 150px;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-left: auto;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444 0%, #f59e0b 50%, #10b981 100%);
    transition: width 0.3s ease;
}

/* Documents manquants */
.missing-docs-list {
    margin-top: 15px;
}

.missing-docs-list p {
    margin: 0 0 8px 0;
    color: #7c2d12;
    font-weight: 600;
}

.missing-docs-list ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.missing-docs-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    color: #7c2d12;
    font-size: 0.9rem;
}

.text-danger {
    color: #dc2626 !important;
}

/* Actions de la licence */
.licence-actions {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* État complet */
.all-complete {
    text-align: center;
    padding: 40px 20px;
}

.complete-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 20px;
}

.all-complete h3 {
    color: #065f46;
    margin-bottom: 10px;
}

.all-complete p {
    color: #6b7280;
    font-size: 1.1rem;
}

/* Badge mineur */
.badge-minor {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
    .documents-global-warning {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .documents-summary {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .licence-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .documents-modal-content {
        margin: 10px;
        max-height: 95vh;
        width: calc(100% - 20px);
    }
    
    .licence-info h5 {
        font-size: 1rem;
        flex-wrap: wrap;
    }
    
    .warning-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .warning-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .documents-progress-simple {
        text-align: left;
    }
    
    .progress-bar {
        width: 100%;
        margin-left: 0;
    }
}

/* CSS pour la modal d'information des documents de licence */

.documents-info-summary {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    border: 1px solid #cbd5e1;
}

.progress-circle {
    position: relative;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}

.circle-progress {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.circle-inner {
    text-align: center;
    z-index: 1;
}

.circle-inner .progress-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    display: block;
}

.circle-inner small {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.progress-details h4 {
    margin: 0 0 8px 0;
    color: #1e293b;
    font-size: 1.3rem;
}

.progress-details p {
    margin: 5px 0;
    color: #475569;
    font-size: 1rem;
}

.warning-text {
    color: #dc2626 !important;
    font-weight: 600;
}

.success-text {
    color: #059669 !important;
    font-weight: 600;
}

.text-success {
    color: #059669 !important;
}

/* Liste des documents */
.documents-list {
    margin-bottom: 25px;
}

.documents-list h5 {
    margin: 0 0 15px 0;
    color: #374151;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.unsigned-docs-list,
.signed-docs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.unsigned-docs-list li,
.signed-docs-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    border: 2px solid;
    transition: all 0.2s ease;
}

.unsigned-docs-list li {
    background-color: #fef2f2;
    border-color: #fecaca;
}

.unsigned-docs-list li:hover {
    background-color: #fee2e2;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.1);
}

.signed-docs-list li {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
}

.signed-docs-list li:hover {
    background-color: #dcfce7;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.1);
}

.doc-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.doc-icon.unsigned {
    background-color: #fca5a5;
    color: #7f1d1d;
}

.doc-icon.signed {
    background-color: #86efac;
    color: #14532d;
}

.doc-info {
    flex-grow: 1;
}

.doc-title {
    font-weight: 600;
    color: #374151;
    font-size: 1rem;
    margin-bottom: 4px;
}

.doc-type {
    font-size: 0.85rem;
    color: #6b7280;
    font-style: italic;
}

.doc-date {
    font-size: 0.85rem;
    color: #059669;
    font-weight: 500;
}

.doc-status {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.doc-status.unsigned {
    background-color: #dc2626;
    color: white;
}

.doc-status.signed {
    background-color: #059669;
    color: white;
}

/* Note d'information */
.documents-note {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
}

.documents-note i {
    color: #2563eb;
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.documents-note p {
    margin: 0;
    color: #1e40af;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Indicateurs visuels sur les onglets */
.tab.has-unsigned-documents {
    border-left: 4px solid #f59e0b;
    position: relative;
}

.tab.has-unsigned-documents::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background-color: #dc2626;
    border-radius: 50%;
    animation: pulse-warning 2s infinite;
}

.tab.all-documents-signed {
    border-left: 4px solid #10b981;
}

.tab.all-documents-signed::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 12px;
    color: #10b981;
    font-weight: bold;
}

@keyframes pulse-warning {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.documents-warning {
    color: #f59e0b;
    font-size: 1.1em;
    margin-left: 8px;
    cursor: help;
    animation: warning-glow 2s infinite;
}

@keyframes warning-glow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .documents-info-summary {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .progress-details {
        text-align: center;
    }
    
    .unsigned-docs-list li,
    .signed-docs-list li {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .doc-info {
        text-align: center;
    }
    
    .documents-note {
        flex-direction: column;
        text-align: center;
    }
    
    .tab.has-unsigned-documents::after,
    .tab.all-documents-signed::after {
        top: 2px;
        right: 2px;
    }
}

/* Styles pour les indicateurs de documents dans les onglets */

.tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    min-height: 48px;
}

.documents-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    flex-shrink: 0;
}

/* Indicateur pour tous documents signés - coche verte */
.documents-indicator.all-signed {
    color: #10b981;
    font-size: 1.1em;
    margin-left: 8px;
}

.documents-indicator.all-signed i {
    filter: drop-shadow(0 1px 2px rgba(16, 185, 129, 0.3));
}

/* Indicateur pour documents manquants - rond rouge avec nombre */
.documents-indicator.has-missing {
    margin-left: 8px;
}

.documents-indicator.has-missing .missing-count {
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
    animation: pulse-red 2s infinite;
}

/* Animation de pulsation pour attirer l'attention */
@keyframes pulse-red {
    0% {
        box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
    }
    50% {
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.6);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
    }
}

/* Hover effects */
.tab:hover .documents-indicator.all-signed {
    color: #059669;
    transform: scale(1.1);
    transition: all 0.2s ease;
}

.tab:hover .documents-indicator.has-missing .missing-count {
    background: #dc2626;
    transform: scale(1.1);
    transition: all 0.2s ease;
}

/* Ajustements pour l'onglet actif */
.tab.active .documents-indicator.all-signed {
    color: #10b981;
}

.tab.active .documents-indicator.has-missing .missing-count {
    background: #ef4444;
    border-color: rgba(255, 255, 255, 0.9);
}

/* Pour les très petits écrans */
@media (max-width: 480px) {
    .documents-indicator.has-missing .missing-count {
        width: 18px;
        height: 18px;
        font-size: 0.75em;
    }
    
    .documents-indicator.all-signed {
        font-size: 1em;
    }
}

/* Variante alternative avec badge plus visible */
.documents-indicator.has-missing-alt .missing-count {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 10px;
    padding: 2px 6px;
    min-width: 18px;
    height: 18px;
    font-size: 0.75em;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Style pour les tooltips (si vous voulez améliorer) */
.documents-indicator {
    cursor: help;
    transition: all 0.2s ease;
}

.documents-indicator:hover {
    transform: scale(1.05);
}

/* Animation d'apparition */
.documents-indicator {
    opacity: 0;
    animation: fadeInIndicator 0.3s ease forwards;
}

@keyframes fadeInIndicator {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Si vous voulez que l'onglet complet change de couleur */
.tab.has-unsigned-documents {
    border-left: 3px solid #fbbf24;
    background: linear-gradient(to right, rgba(251, 191, 36, 0.05) 0%, transparent 20%);
}

.tab.all-documents-signed {
    border-left: 3px solid #10b981;
    background: linear-gradient(to right, rgba(16, 185, 129, 0.05) 0%, transparent 20%);
}

/* Style alternatif avec badge carré */
.documents-indicator.square-badge .missing-count {
    border-radius: 4px;
    width: auto;
    min-width: 20px;
    padding: 2px 6px;
    font-size: 0.7em;
    font-weight: 700;
}