/* ================= AUDIO CALL SYSTEM STYLES ================= */
/* File: audioCall.css - RextFlex Audio Call */

/* Audio Call Container */
.audio-call-container {
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Top Bar */
.audio-call-top-bar {
    padding: 20px 15px;
    background: rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    color: white;
    backdrop-filter: blur(10px);
}

.audio-call-status {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.audio-call-timer {
    font-size: 14px;
    font-weight: 600;
    color: white;
    font-family: monospace;
    background: rgba(0,0,0,0.3);
    padding: 4px 10px;
    border-radius: 15px;
}

.close-audio-call-btn {
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.close-audio-call-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

/* Caller Info Section */
.caller-info-container {
    text-align: center;
    margin-top: 50px;
    padding: 0 20px;
}

.caller-avatar-large {
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, #405DE6, #C13584);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 5px solid rgba(255,255,255,0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.caller-avatar-large i {
    font-size: 60px;
    color: white;
}

.caller-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
}

.caller-status {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

/* Audio Wave Animation */
.audio-wave-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    margin: 30px 0;
    gap: 6px;
}

.wave-bar {
    width: 4px;
    height: 30px;
    background: rgba(255,255,255,0.6);
    border-radius: 10px;
    animation: wave 1s ease-in-out infinite;
}

.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }
.wave-bar:nth-child(6) { animation-delay: 0.5s; }
.wave-bar:nth-child(7) { animation-delay: 0.6s; }

@keyframes wave {
    0%, 100% { height: 20px; }
    50% { height: 50px; background: rgba(255,255,255,0.9); }
}

/* Call Controls */
.audio-call-controls {
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    gap: 25px;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.audio-call-control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(38, 38, 38, 0.8);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.audio-call-control-btn:hover {
    background: rgba(50, 50, 50, 0.9);
    transform: scale(1.05);
}

.audio-call-control-btn.end-call {
    background: #FF0000;
    width: 70px;
    height: 70px;
    font-size: 28px;
}

.audio-call-control-btn.end-call:hover {
    background: #cc0000;
    transform: scale(1.1);
}

.audio-call-control-btn.active {
    background: #25D366;
    color: white;
}

.audio-call-control-btn.muted {
    background: #ed4956;
    color: white;
}

/* Incoming Audio Call Modal */
.incoming-audio-call-modal {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    overflow: hidden;
}

.incoming-call-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #405DE6, #C13584);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 4px solid white;
}

.incoming-call-avatar i {
    font-size: 40px;
    color: white;
}

.incoming-call-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 5px;
}

.incoming-call-name {
    font-size: 22px;
    font-weight: 600;
    color: white;
    text-align: center;
    margin-bottom: 15px;
}

.incoming-call-description {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    text-align: center;
    margin-bottom: 30px;
}

/* Call Buttons */
.audio-call-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    min-width: 120px;
}

.audio-call-btn.accept-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
}

.audio-call-btn.accept-btn:hover {
    background: linear-gradient(135deg, #1ea952, #0d6d62);
    transform: scale(1.05);
}

.audio-call-btn.reject-btn {
    background: linear-gradient(135deg, #FF0000, #CC0000);
    color: white;
}

.audio-call-btn.reject-btn:hover {
    background: linear-gradient(135deg, #cc0000, #990000);
    transform: scale(1.05);
}

/* Call History */
.audio-call-history-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #333;
    cursor: pointer;
    transition: background 0.3s ease;
}

.audio-call-history-item:hover {
    background: rgba(255,255,255,0.05);
}

.audio-call-history-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #405DE6, #C13584);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
    margin-right: 15px;
}

.audio-call-history-info {
    flex: 1;
}

.audio-call-history-name {
    font-weight: 600;
    color: white;
    font-size: 15px;
    margin-bottom: 3px;
}

.audio-call-history-details {
    color: #8e8e8e;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.audio-call-history-incoming {
    color: #25D366;
}

.audio-call-history-outgoing {
    color: #0095f6;
}

.audio-call-history-missed {
    color: #ed4956;
}

/* Recording Indicator */
.audio-recording-indicator {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,0,0,0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 100;
}

.audio-recording-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: recording-pulse 1s infinite;
}

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

/* Quality Indicator */
.audio-quality-indicator {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 50;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.connection-excellent { color: #25D366 !important; }
.connection-good { color: #FFD700 !important; }
.connection-fair { color: #FFA500 !important; }
.connection-poor { color: #FF0000 !important; }

/* App Logo in Call */
.app-logo-call {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 18px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-logo-call i {
    color: #E1306C;
}

/* Volume Indicator */
.volume-indicator {
    position: absolute;
    bottom: 180px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 50;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive Design */
@media (max-width: 500px) {
    .caller-avatar-large {
        width: 120px;
        height: 120px;
    }
    
    .caller-avatar-large i {
        font-size: 50px;
    }
    
    .caller-name {
        font-size: 24px;
    }
    
    .audio-call-controls {
        gap: 20px;
        padding: 20px 15px;
    }
    
    .audio-call-control-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .audio-call-control-btn.end-call {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .incoming-call-avatar {
        width: 80px;
        height: 80px;
    }
    
    .incoming-call-avatar i {
        font-size: 32px;
    }
    
    .incoming-call-title {
        font-size: 20px;
    }
    
    .incoming-call-name {
        font-size: 18px;
    }
}

/* Animation for incoming call */
@keyframes audio-pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.incoming-audio-call-ring {
    position: relative;
}

.incoming-audio-call-ring::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 3px solid #25D366;
    border-radius: 50%;
    animation: audio-pulse-ring 2s infinite;
}

/* Speaker Animation */
.speaker-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.speaker-icon {
    font-size: 100px;
    color: rgba(255,255,255,0.2);
    position: relative;
}

.speaker-wave {
    position: absolute;
    border: 3px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: speaker-wave 2s ease-out infinite;
}

.speaker-wave:nth-child(2) { animation-delay: 0.5s; }
.speaker-wave:nth-child(3) { animation-delay: 1s; }

@keyframes speaker-wave {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

/* Audio Call Toast */
.audio-call-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    z-index: 9999;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
    10% { opacity: 1; transform: translateX(-50%) translateY(0); }
    90% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

/* Call Ended Screen */
.call-ended-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.call-ended-icon {
    font-size: 60px;
    color: #25D366;
    margin-bottom: 20px;
}

.call-ended-text {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.call-ended-duration {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
}

/* Audio Elements */
audio {
    display: none;
}

/* No Audio Placeholder */
.no-audio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    color: #666;
    font-size: 16px;
}

/* Audio buttons in chat */
.chat-audio-btn {
    background: #25D366;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.chat-audio-btn:hover {
    background: #128C7E;
    transform: scale(1.1);
}
[file content end]