/* ===========================================
   VOICE NOTE MODAL STYLES - voice-note.css
   ========================================== */

/* Voice Note Modal Styles */
.voice-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

/* Voice Note Button Styles */
        #voiceNoteBtn {
            background-color: #ff4757 !important;
            background-image: none !important;
            color: white !important;
            border: 2px solid #ff3742 !important;
            box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3) !important;
            position: relative;
        }

        #voiceNoteBtn:hover {
            background-color: #ff3742 !important;
            transform: translateY(-2px) !important;
            box-shadow: 0 8px 25px rgba(255, 71, 87, 0.4) !important;
        }

        /* Icon Animation */
        #voiceNoteBtn .fa-microphone {
            animation: microphonePulse 2s ease-in-out infinite;
            transform-origin: center;
            display: inline-block;
        }

        @keyframes microphonePulse {
            0%, 100% {
                transform: scale(1) rotate(0deg);
                opacity: 1;
            }
            50% {
                transform: scale(1.15) rotate(0deg);
                opacity: 0.8;
            }
        }

        /* Voice Note Modal Styles */
        .voice-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        .voice-modal.active {
            display: flex;
        }

        .voice-modal-content {
            background: white;
            padding: 40px;
            border-radius: 20px;
            max-width: 500px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            position: relative;
            animation: modalSlideIn 0.3s ease;
        }

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

        .voice-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
        }

        .voice-modal-title {
            font-size: 1.8rem;
            color: #333;
        }

        .close-modal {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: #666;
            padding: 5px;
            border-radius: 50%;
            width: 35px;
            height: 35px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

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

        .recording-interface {
            text-align: center;
            padding: 20px 0;
        }

        .recording-status {
            font-size: 1.2rem;
            margin-bottom: 20px;
            color: #666;
            font-weight: 600;
        }

        .recording-status.recording {
            color: #ff6b6b;
            animation: pulse 1s infinite;
        }

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

        .recording-timer {
            font-size: 2rem;
            font-weight: bold;
            color: #333;
            margin-bottom: 30px;
            font-family: 'Courier New', monospace;
            background: #f8f9fa;
            padding: 10px 20px;
            border-radius: 10px;
            display: inline-block;
        }

        .recording-controls {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 30px;
        }

        .control-btn {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            border: none;
            cursor: pointer;
            font-size: 1.5rem;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .control-btn.record {
            background: #ff6b6b;
            color: white;
        }

        .control-btn.record:hover {
            background: #ff5252;
            transform: scale(1.1);
        }

        .control-btn.stop {
            background: #333;
            color: white;
        }

        .control-btn.stop:hover {
            background: #555;
            transform: scale(1.1);
        }

        .control-btn.play {
            background: #667eea;
            color: white;
        }

        .control-btn.play:hover {
            background: #5a67d8;
            transform: scale(1.1);
        }

        .control-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .waveform-container {
            height: 100px;
            background: #f8f9fa;
            border-radius: 10px;
            margin: 20px 0;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            border: 2px solid #e9ecef;
        }

        .waveform-bars {
            display: flex;
            align-items: center;
            gap: 2px;
            height: 80px;
        }

        .waveform-bar {
            width: 3px;
            background: #667eea;
            border-radius: 2px;
            transition: height 0.1s ease;
        }

        .audio-player {
            width: 100%;
            margin: 20px 0;
            border-radius: 10px;
        }

        .voice-actions {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .voice-actions .btn {
            flex: 1;
        }

        .error-message {
            background: #ffebee;
            border: 1px solid #ffcdd2;
            color: #c62828;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
        }

        .success-message {
            background: #e8f5e8;
            border: 1px solid #c8e6c9;
            color: #2e7d32;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .form-buttons {
                flex-direction: column;
            }
            
            .voice-modal-content {
                padding: 20px;
            }
            
            .control-btn {
                width: 50px;
                height: 50px;
                font-size: 1.2rem;
            }


* Hover effect for the voice note button */
#voiceNoteBtn:hover {
    background-color: #ff3742 !important;
    background-image: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.4) !important;
}

/* Focus state for accessibility */
#voiceNoteBtn:focus {
    outline: 3px solid rgba(255, 71, 87, 0.5) !important;
    outline-offset: 2px !important;
}

/* Active state when clicked */
#voiceNoteBtn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 10px rgba(255, 71, 87, 0.3) !important;
}

/* Main animation for the microphone icon */
#voiceNoteBtn .fa-microphone {
    animation: microphonePulse 2s ease-in-out infinite;
    transform-origin: center;
    display: inline-block;
}

/* Option 1: Pulsing Microphone Animation */
@keyframes microphonePulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: scale(1.1) rotate(-2deg);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.15) rotate(0deg);
        opacity: 1;
    }
    75% {
        transform: scale(1.1) rotate(2deg);
        opacity: 0.8;
    }
}