/* ========== SMART CALL FILTERING NOTIFICATION STYLES ========== */

/* 1. Regular Call Processing (Silent) - Top notification bar */
.call-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9997;
    max-width: 350px;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
}

.processing-notification {
    background: rgba(23, 162, 184, 0.95);
    color: white;
    border-left: 4px solid #17a2b8;
}

.notification-content {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
}

/* 2. URGENT Call Forward - Full-screen modal with special styling */
.urgent-call-modal .modal-dialog {
    max-width: 600px;
    margin: 0 auto;
}

.urgent-modal-content {
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    box-shadow: 0 20px 40px rgba(220, 53, 69, 0.4);
    animation: urgentPulse 0.5s ease-out, urgentZoom 0.3s ease-out;
}

.urgent-modal-body {
    padding: 40px 30px;
}

.urgent-icon {
    font-size: 4rem;
    animation: urgentShake 0.8s infinite;
}

.urgent-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: urgentGlow 1s infinite alternate;
}

.urgent-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.9;
}

.urgent-actions .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.urgent-actions .btn-success {
    background: #28a745;
    border-color: #28a745;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.urgent-actions .btn-success:hover {
    background: #218838;
    border-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
}

.urgent-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.urgent-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.auto-dismiss-timer {
    opacity: 0.8;
}

/* 3. Dog House Voicemail - Medium modal with specific styling */
.voicemail-modal-content {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.voicemail-header {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
    border-radius: 15px 15px 0 0;
    padding: 20px 25px;
}

.voicemail-header .modal-title {
    font-weight: 600;
    font-size: 1.2rem;
}

.caller-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.caller-info strong {
    font-size: 1.1rem;
}

.transcript-box {
    background: #f8f9fa !important;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.voicemail-actions {
    padding: 20px 25px;
    gap: 10px;
}

.voicemail-actions .btn {
    border-radius: 25px;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.2s ease;
}

.voicemail-actions .btn:hover {
    transform: translateY(-1px);
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes urgentPulse {
    0% {
        box-shadow: 0 20px 40px rgba(220, 53, 69, 0.4);
    }
    50% {
        box-shadow: 0 25px 50px rgba(220, 53, 69, 0.7);
    }
    100% {
        box-shadow: 0 20px 40px rgba(220, 53, 69, 0.4);
    }
}

@keyframes urgentZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes urgentShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

@keyframes urgentGlow {
    from {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }
    to {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.5);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .call-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .urgent-title {
        font-size: 2rem;
    }
    
    .urgent-subtitle {
        font-size: 1.1rem;
    }
    
    .urgent-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .urgent-actions .btn:last-child {
        margin-bottom: 0;
    }
}

/* Browser notification fallback styles */
.browser-notification {
    background: rgba(0, 123, 255, 0.95);
    color: white;
    border-left: 4px solid #007bff;
}

/* Category-specific notification colors */
.notification-vip {
    background: linear-gradient(135deg, #fd7e14, #e55a00);
    border-left-color: #fd7e14;
}

.notification-family {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    border-left-color: #28a745;
}

.notification-spam {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-left-color: #dc3545;
}

/* Audio visualization for calls */
.audio-visualizer {
    display: inline-block;
    margin-left: 10px;
}

.audio-wave {
    display: inline-block;
    width: 3px;
    height: 15px;
    background: currentColor;
    margin: 0 1px;
    border-radius: 3px;
    animation: audioWave 1s infinite;
}

.audio-wave:nth-child(2) { animation-delay: 0.1s; }
.audio-wave:nth-child(3) { animation-delay: 0.2s; }
.audio-wave:nth-child(4) { animation-delay: 0.3s; }

@keyframes audioWave {
    0%, 100% { height: 5px; opacity: 0.5; }
    50% { height: 15px; opacity: 1; }
}