/**
 * Styles pour la gestion unifiée des Participants
 * (Organisateurs, Staff, Participants)
 */

/* Onglets rôles */
.participants-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid #1e293b;
    padding-bottom: 0;
}

.participants-tabs .tab {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #64748b;
    transition: all 0.3s;
    font-size: 14px;
}

.participants-tabs .tab:hover {
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.02);
}

.participants-tabs .tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Liste des attendees */
.attendees-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Carte attendee */
.attendee-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid;
    border-radius: 12px;
    transition: all 0.3s;
    flex-wrap: wrap;
}

.attendee-card:hover {
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.attendee-card.organizer {
    border-left-color: #667eea;
}

.attendee-card.staff {
    border-left-color: #f093fb;
}

.attendee-card.participant {
    border-left-color: #4facfe;
}

/* Badge de rôle */
.role-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

/* Info attendee */
.attendee-info {
    flex: 1;
    min-width: 250px;
}

.attendee-info h4 {
    margin: 0 0 6px 0;
    font-size: 16px;
    color: #f1f5f9;
    font-weight: 600;
}

.attendee-info p {
    margin: 0 0 4px 0;
    font-size: 13px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.attendee-info p i {
    font-size: 11px;
    opacity: 0.7;
}

.attendee-email {
    color: #cbd5e1 !important;
}

.source-badge {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
    background: rgba(100, 116, 139, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
}

/* Status */
.attendee-status {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    min-width: 150px;
}

.checked-in {
    color: #10b981;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.not-checked-in {
    color: #f59e0b;
    font-size: 13px;
    font-weight: 500;
}

.access-level {
    font-size: 12px;
    color: #64748b;
    background: rgba(100, 116, 139, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
}

/* Actions */
.attendee-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.attendee-actions button {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.attendee-actions button i {
    font-size: 12px;
}

.btn-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-badge:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.btn-checkin {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-checkin:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.btn-cancel {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

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

.btn-invite {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
}

.btn-invite:hover {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.btn-qr {
    background: rgba(100, 116, 139, 0.2);
    color: #cbd5e1;
    border: 1px solid rgba(203, 213, 225, 0.1);
}

.btn-qr:hover {
    background: rgba(100, 116, 139, 0.3);
    border-color: rgba(203, 213, 225, 0.2);
}

.invited {
    color: #10b981;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 14px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Responsive */
@media (max-width: 1200px) {
    .attendee-card {
        flex-direction: column;
        align-items: stretch;
    }
    
    .attendee-info {
        min-width: unset;
    }
    
    .attendee-status {
        align-items: flex-start;
    }
    
    .attendee-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .participants-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .participants-tabs .tab {
        padding: 10px 16px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .attendee-actions button {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 11px;
    }
}

/* Animation d'apparition */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.attendee-card {
    animation: slideIn 0.3s ease-out;
}

/* État vide */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.empty-state i {
    font-size: 4rem;
    color: #c9a9ff;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    color: #94a3b8;
    margin-bottom: 8px;
}

.empty-state p {
    color: #64748b;
    font-size: 14px;
}

