/* StreamRecorder - Styles optimisés */

.stream-recorder-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header avec titre et bouton */
.recorder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.recorder-header h2 {
    font-size: 28px;
    margin: 0;
    color: #333;
    font-weight: 600;
}

/* Statistiques */
.recorder-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Lecteur audio sticky */
.player-section {
    display: none;
    position: sticky;
    top: 10px;
    z-index: 100;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.player-section h3 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 18px;
}

.player-section .close-btn {
    float: right;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s;
}

.player-section .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.player-info {
    color: white;
    margin-top: 10px;
    font-size: 14px;
}

/* Layout principal - Une seule colonne */
.recorder-content {
    display: block;
    max-width: 1400px;
    margin: 0 auto;
}

/* Section calendrier - Supprimée */

/* Section liste */
.recorder-list-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: 75vh;
    overflow-y: auto;
    width: 100%;
    max-width: none;
}

.recorder-list-section h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
    position: sticky;
    top: 0;
    background: white;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* Items de la liste */
.recording-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.recording-item:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.recording-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.recording-title {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.recording-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-scheduled {
    background: #e3f2fd;
    color: #1976d2;
}

.status-recording {
    background: #fff3e0;
    color: #f57c00;
    animation: pulse 2s infinite;
}

.status-completed {
    background: #e8f5e9;
    color: #388e3c;
}

.status-failed {
    background: #ffebee;
    color: #d32f2f;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.recording-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #666;
}

.recording-detail {
    display: flex;
    align-items: center;
    gap: 5px;
}

.recording-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.recording-actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    background: #f0f0f0;
    color: #333;
}

.recording-actions button:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

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

.recording-actions .btn-delete {
    background: #ffebee;
    color: #d32f2f;
}

.recording-actions .btn-delete:hover {
    background: #ffcdd2;
}

/* Modal amélioré */
.recorder-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.recorder-modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-header h3 {
    margin: 0;
    font-size: 22px;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* Formulaire dans le modal */
.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

/* Boutons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

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

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* Notifications toast */
.recorder-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease-out;
    z-index: 1001;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.notification-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
}

.notification-error {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
}

.notification-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}


/* Scrollbar personnalisée */
.recordings-list::-webkit-scrollbar,
.recorder-modal-content::-webkit-scrollbar {
    width: 8px;
}

.recordings-list::-webkit-scrollbar-track,
.recorder-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.recordings-list::-webkit-scrollbar-thumb,
.recorder-modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

.recordings-list::-webkit-scrollbar-thumb:hover,
.recorder-modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b4199 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .recorder-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .recorder-stats {
        grid-template-columns: 1fr;
    }
    
    .recording-details {
        grid-template-columns: 1fr;
    }
    
    .recording-actions {
        width: 100%;
    }
    
    .recording-actions button {
        flex: 1;
    }
}