/**
 * Video Call Styles
 * ================
 * 
 * Styles for video call modals and components
 */

/* Incoming Call Modal */
#incomingCallModal .modal-content {
    border-radius: 15px;
    overflow: hidden;
}

#incomingCallModal .caller-avatar {
    position: relative;
}

#incomingCallModal .caller-avatar i {
    color: #0f2d5a;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

#incomingCallModal .call-actions .btn {
    min-width: 120px;
    font-weight: 600;
}

/* Video Call Modal */
#videoCallModal .modal-content {
    border-radius: 15px;
    overflow: hidden;
}

#videoCallModal .modal-header {
    background: linear-gradient(135deg, #0f2d5a 0%, #1a5a9a 100%);
    border: none;
}

#videoCallModal .call-status .badge {
    font-size: 0.9rem;
    padding: 8px 12px;
}

#videoCallModal #zoomContainer {
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

#videoCallModal .call-controls .btn {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
}

#videoCallModal .call-controls .btn i {
    font-size: 1.2rem;
}

#videoCallModal .call-controls .btn:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Calling Modal */
#callingModal .modal-content {
    border-radius: 15px;
    overflow: hidden;
}

#callingModal .calling-animation {
    position: relative;
    display: inline-block;
}

#callingModal .calling-animation i {
    color: #0f2d5a;
    animation: pulse 1.5s infinite;
}

#callingModal .pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 3px solid #0f2d5a;
    border-radius: 50%;
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.4);
        opacity: 0;
    }
}

/* Call Tutor Button */
.btn-call-tutor {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-call-tutor:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    color: white;
}

.btn-call-tutor:active {
    transform: translateY(0);
}

/* Video Call States */
.call-state-ringing {
    animation: ring 1s infinite;
}

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

.call-state-connected {
    color: #28a745;
}

.call-state-disconnected {
    color: #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    #videoCallModal .modal-dialog {
        margin: 10px;
    }
    
    #videoCallModal #zoomContainer {
        height: 300px;
    }
    
    #videoCallModal .call-controls .btn {
        width: 45px;
        height: 45px;
        margin: 0 3px;
    }
    
    #incomingCallModal .call-actions .btn {
        min-width: 100px;
        font-size: 0.9rem;
    }
}

/* Loading States */
.video-call-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #6c757d;
}

.video-call-loading .spinner-border {
    width: 3rem;
    height: 3rem;
    margin-right: 1rem;
}

/* Error States */
.video-call-error {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid #f5c6cb;
}

.video-call-error i {
    margin-right: 0.5rem;
}

/* Success States */
.video-call-success {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid #c3e6cb;
}

.video-call-success i {
    margin-right: 0.5rem;
}


