/* Twilio Call Modal Styles */
.twilio-call-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.twilio-call-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.twilio-call-modal-content {
    position: relative;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px;
    border: 2px solid #d4af37;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

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

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

.twilio-call-dots {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.twilio-call-dots span {
    width: 8px;
    height: 8px;
    background: #fbbf24;
    border-radius: 50%;
    animation: pulse 1.4s infinite ease-in-out both;
}

.twilio-call-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.twilio-call-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.twilio-call-dots span:nth-child(3) {
    animation-delay: 0s;
}

.twilio-call-modal-body {
    padding: 2rem;
    text-align: center;
    color: white;
}

.twilio-call-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #d4af37;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.twilio-call-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.twilio-call-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
    color: #d4af37;
}

.twilio-call-subtitle {
    font-size: 1.1rem;
    margin: 0 0 2rem 0;
    color: #cbd5e1;
}

.twilio-call-status {
    font-size: 1rem;
    margin: 0 0 2rem 0;
    color: #94a3b8;
    animation: pulse 1.5s infinite;
}

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

.twilio-call-timer {
    font-size: 2rem;
    font-weight: bold;
    margin: 1rem 0;
    color: #d4af37;
    font-family: 'Courier New', monospace;
}

.twilio-call-video-container {
    width: 100%;
    height: 200px;
    background: #000;
    border-radius: 10px;
    margin: 1rem 0;
    overflow: hidden;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.twilio-call-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.twilio-call-video-container:empty {
    display: none;
}

.twilio-call-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.twilio-call-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.twilio-call-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.twilio-call-accept {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.twilio-call-accept:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

.twilio-call-reject {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.twilio-call-reject:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
}

.twilio-call-cancel {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.twilio-call-cancel:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
}

.twilio-call-add {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.twilio-call-add:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.twilio-call-speaker {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.twilio-call-speaker:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

.twilio-call-speaker.active {
    background: linear-gradient(135deg, #10b981, #059669);
}

.twilio-call-mute {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.twilio-call-mute:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.4);
}

.twilio-call-mute.muted {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.twilio-call-end {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.twilio-call-end:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
}

/* Responsive design */
@media (max-width: 640px) {
    .twilio-call-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .twilio-call-modal-body {
        padding: 1.5rem;
    }
    
    .twilio-call-avatar {
        width: 100px;
        height: 100px;
    }
    
    .twilio-call-title {
        font-size: 1.3rem;
    }
    
    .twilio-call-controls {
        gap: 0.75rem;
    }
    
    .twilio-call-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}
