/* Container da Chamada */
.call-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: #111; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.call-overlay.hidden { display: none !important; }
.call-container { width: 100%; height: 100%; position: relative; display: flex; justify-content: center; align-items: center; }

/* Vídeos */
#remote-video { width: 100%; height: 100%; object-fit: cover; }
.local-video-wrapper { position: absolute; bottom: 100px; right: 20px; width: 120px; height: 160px; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.5); border: 2px solid rgba(255,255,255,0.2); z-index: 10000; }
#local-video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }

/* Controles */
.call-controls { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 15px; padding: 15px 25px; background: rgba(0,0,0,0.6); backdrop-filter: blur(10px); border-radius: 40px; z-index: 10001; }
.call-btn { width: 50px; height: 50px; border-radius: 50%; border: none; font-size: 1.2rem; color: white; background: rgba(255,255,255,0.2); cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; }
.call-btn:hover { background: rgba(255,255,255,0.4); }
.call-btn.active { background: #fff; color: #333; }
.call-btn.hangup { background: #f44336; }
.call-btn.hangup:hover { background: #d32f2f; }
.call-status { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); color: white; background: rgba(0,0,0,0.5); padding: 8px 20px; border-radius: 20px; font-size: 0.9rem; font-weight: 600; z-index: 10001; }

/* Modal de Recebimento de Chamada */
.incoming-call-card {
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(15px);
    padding: 40px 30px; border-radius: 30px; text-align: center;
    width: 320px; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.5); display: flex; flex-direction: column; align-items: center;
}
.incoming-avatar-wrapper { position: relative; margin-bottom: 20px; }
.incoming-avatar { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 3px solid #53954a; position: relative; z-index: 2; }
.pulse-ring { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 90px; height: 90px; border-radius: 50%; border: 2px solid #53954a; opacity: 0; animation: pulseRing 2s infinite; }
.pulse-ring:nth-child(2) { animation-delay: 0.5s; }
@keyframes pulseRing { 0% { width: 90px; height: 90px; opacity: 0.8; } 100% { width: 180px; height: 180px; opacity: 0; } }
.incoming-call-card h3 { margin: 0; font-size: 1.4rem; font-weight: 800; color: #1c1e21; font-family: 'Montserrat', sans-serif; }
.incoming-call-card p { margin: 5px 0 30px 0; color: #65676b; font-size: 0.9rem; }
.incoming-actions { display: flex; justify-content: center; gap: 20px; width: 100%; }
.btn-decline, .btn-accept { width: 60px; height: 60px; border-radius: 50%; border: none; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: white; cursor: pointer; transition: transform 0.2s; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.btn-decline { background: #ff3b30; } .btn-accept { background: #34c759; }
.btn-decline:hover, .btn-accept:hover { transform: scale(1.1); }
.action-label { display: block; font-size: 0.7rem; margin-top: 5px; color: #888; font-weight: 600; }