/* WhatsApp Modern Voice & Video Call Interface */

.call-overlay-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: radial-gradient(circle at center, #182229 0%, #0b141a 100%);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 1.5rem;
    z-index: 99999;
    color: #ffffff;
    box-sizing: border-box;
    overflow: hidden;
}

.call-overlay-modal.active {
    display: flex !important;
}

.call-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.call-encryption-notice {
    font-size: 0.8rem;
    color: #8696a0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.call-contact-name {
    font-size: 1.65rem;
    font-weight: 700;
    color: #e9edef;
    letter-spacing: 0.2px;
}

.call-status-label {
    font-size: 1rem;
    color: #00a884;
    font-weight: 600;
}

.call-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex: 1;
    width: 100%;
}

.call-avatar-container {
    position: relative;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #202c33;
    border: 2px solid #2a3942;
    box-shadow: 0 0 0 0 rgba(0, 168, 132, 0.7);
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% { box-shadow: 0 0 0 0 rgba(0, 168, 132, 0.6); }
    70% { box-shadow: 0 0 0 35px rgba(0, 168, 132, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 168, 132, 0); }
}

.call-avatar-container i {
    font-size: 3.8rem;
    color: #00a884;
}

.call-video-preview {
    width: 90%;
    max-width: 480px;
    height: 280px;
    border-radius: 16px;
    background: #000;
    display: none;
    object-fit: cover;
    border: 1px solid #2a3942;
}

.call-actions-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 420px;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

.call-action-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.call-action-label {
    font-size: 0.78rem;
    color: #8696a0;
    font-weight: 500;
}

.call-action-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: none;
    background-color: #202c33;
    color: #e9edef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.call-action-btn:hover {
    background-color: #2a3942;
    transform: scale(1.08);
}

.call-action-btn.active {
    background-color: #ffffff;
    color: #111b21;
}

.call-action-btn.accept {
    background-color: #00a884 !important;
    color: #ffffff !important;
    width: 64px;
    height: 64px;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(0, 168, 132, 0.6);
    animation: acceptPulse 1.5s infinite;
}

@keyframes acceptPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 168, 132, 0.7); }
    50% { transform: scale(1.08); box-shadow: 0 0 0 16px rgba(0, 168, 132, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 168, 132, 0); }
}

.call-action-btn.accept:hover {
    background-color: #06cf9c !important;
}

.call-action-btn.reject, .call-action-btn.end {
    background-color: #ef4444 !important;
    color: #ffffff !important;
    width: 64px;
    height: 64px;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.5);
}

.call-action-btn.reject:hover, .call-action-btn.end:hover {
    background-color: #dc2626 !important;
    transform: scale(1.08);
}
