/* voice-notes.css - Estilos para Notas de Voz de Pacientes */
/* INTRANEURO - Sistema de Gestión Hospitalaria */

/* ========================================
   BOTÓN NUEVA NOTA DE VOZ (mismo estilo que NUEVO INGRESO)
   ======================================== */
.btn-new-voice-note {
    background: #5DADE2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(93, 173, 226, 0.3);
}

.btn-new-voice-note:hover {
    background: #4A9FD3;
    box-shadow: 0 4px 8px rgba(93, 173, 226, 0.4);
    transform: translateY(-1px);
}

.btn-new-voice-note:active {
    transform: translateY(0);
}

/* ========================================
   INDICADOR DE GRABACIÓN
   ======================================== */
.voice-note-recording-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #DCF8C6;
    border-radius: 12px;
    color: #075E54;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(7, 94, 84, 0.15);
}

.recording-pulse {
    animation: pulse 1.5s ease-in-out infinite;
    font-size: 1.2em;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* ========================================
   LISTA DE NOTAS DE VOZ
   ======================================== */
.voice-notes-list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px 0;
}

/* ========================================
   ITEM DE NOTA DE VOZ (Estilo WhatsApp)
   ======================================== */
.voice-note-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border-radius: 18px;
    border-left: 4px solid #4caf50;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.voice-note-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateX(2px);
}

/* Botón de play/pause (triángulo) */
.voice-note-play-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    border: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    padding-left: 3px; /* Ajuste visual para centrar el triángulo */
}

.voice-note-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.voice-note-play-btn:active {
    transform: scale(0.95);
}

/* Información de la nota */
.voice-note-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

/* Forma de onda simulada */
.voice-note-waveform {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.voice-note-duration {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2e7d32;
    font-family: 'Courier New', monospace;
}

/* Simulación de barras de audio (opcional) */
.voice-note-waveform::before {
    content: '';
    flex: 1;
    height: 24px;
    background: repeating-linear-gradient(
        90deg,
        #81c784 0px,
        #81c784 3px,
        transparent 3px,
        transparent 6px
    );
    background-size: 100% 100%;
    border-radius: 4px;
    opacity: 0.4;
}

/* Metadatos de la nota */
.voice-note-meta {
    font-size: 0.85rem;
    color: #558b2f;
    font-weight: 500;
}

/* Botón de eliminar */
.voice-note-delete-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.voice-note-delete-btn:hover {
    opacity: 1;
    transform: scale(1.15);
    background: rgba(244, 67, 54, 0.1);
}

.voice-note-delete-btn:active {
    transform: scale(0.9);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .voice-note-item {
        padding: 10px 12px;
        gap: 10px;
    }

    .voice-note-play-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 14px;
    }

    .voice-note-duration {
        font-size: 0.9rem;
    }

    .voice-note-meta {
        font-size: 0.8rem;
    }

    .voice-note-delete-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 16px;
    }

    .voice-note-recording-indicator {
        padding: 12px 15px;
        gap: 10px;
        font-size: 0.9rem;
    }

    .btn-new-voice-note {
        padding: 8px 14px;
        font-size: 0.85rem;
        gap: 6px;
    }

    .btn-new-voice-note img {
        width: 14px !important;
        height: 14px !important;
    }
}

/* ========================================
   ESTADO VACÍO
   ======================================== */
/* Removido - no mostrar mensaje cuando no hay notas */
