/* Styles pour l'interface de conversation structurée */

.structured-content {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.main-section {
    border-left: 4px solid #007bff;
    padding-left: 20px;
    margin-bottom: 30px;
}

.main-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #007bff;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.main-title i {
    color: #007bff;
}

.subsection {
    margin-bottom: 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subsection-header .btn {
    border: none;
    border-radius: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    font-weight: 500;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.subsection-header .btn:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    color: #007bff;
}

.subsection-header .btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.subsection-header .btn i {
    transition: transform 0.3s ease;
}

.subsection-header .btn[aria-expanded="false"] i {
    transform: rotate(-90deg);
}

.subsection-content {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 20px;
}

.labeled-item {
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #28a745;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.item-label {
    color: #28a745;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.item-label i {
    color: #28a745;
}

.item-content {
    color: #6c757d;
    line-height: 1.6;
    font-size: 0.9rem;
}

.text-item {
    margin-bottom: 10px;
    padding: 8px 12px;
    background: white;
    border-radius: 4px;
    border-left: 2px solid #6c757d;
}

.text-content {
    color: #495057;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Animation pour les collapses */
.collapse {
    transition: height 0.35s ease;
}

.collapsing {
    transition: height 0.35s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .main-section {
        padding-left: 10px;
    }

    .main-title {
        font-size: 1.3rem;
    }

    .subsection-content {
        padding: 15px;
    }

    .labeled-item {
        padding: 8px;
    }
}

/* Styles pour les icônes */
.fas.fa-file-medical {
    color: #007bff;
}

.fas.fa-chevron-down {
    color: #6c757d;
}

.fas.fa-circle {
    color: #28a745;
}

/* Effet hover pour les éléments interactifs */
.subsection:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.labeled-item:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

/* Styles pour les états de chargement */
.loading-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #6c757d;
}

.loading-content i {
    margin-right: 10px;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Animation pour l'indicateur d'enregistrement */
@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

/* Styles pour l'enregistrement vocal */
.recording-indicator {
    display: flex;
    align-items: center;
}

.recording-timer {
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.btn-recording {
    animation: pulse 1s infinite;
}

/* Styles pour les boutons d'enregistrement */
#btn-start-recording:disabled,
#btn-pause-recording:disabled,
#btn-stop-recording:disabled,
#btn-save-recording:disabled,
#btn-play-recording:disabled,
#btn-clear-recording:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Animation pour le bouton de lecture */
.btn-info:hover {
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

.btn-warning:hover {
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

/* Styles pour les boutons d'action */
.btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}