/* LiveKit Call UI Styles */

/* Main Call Container */
.call-ui {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.call-ui.hidden {
    display: none;
}

.call-container {
    width: 100%;
    height: 100%;
    max-width: 1200px;
    position: relative;
    background: #000;
}

/* Call Header */
.call-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.caller-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.caller-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #00a884;
}

.caller-info h3 {
    margin: 0;
    color: white;
    font-size: 18px;
}

.caller-info span {
    color: #8696a0;
    font-size: 12px;
}

.close-call {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.close-call:hover {
    background: rgba(255,255,255,0.3);
}

/* Video Containers */
.video-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.remote-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.local-video {
    position: absolute;
    bottom: 100px;
    right: 20px;
    width: 150px;
    height: 200px;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.3);
    object-fit: cover;
    background: #000;
    cursor: pointer;
    transition: all 0.3s;
}

.local-video:hover {
    transform: scale(1.05);
}

/* Call Controls */
.call-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    background: rgba(0,0,0,0.6);
    padding: 15px 25px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.control-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    background: #2c3e50;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.control-btn:hover {
    transform: scale(1.1);
}

.control-btn.end-call {
    background: #e74c3c;
}

.control-btn.end-call:hover {
    background: #c0392b;
}

.control-btn.muted,
.control-btn.video-off {
    background: #e74c3c;
}

.control-btn.active {
    background: #00a884;
}

/* Call Timer */
.call-timer {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.5);
    padding: 5px 15px;
    border-radius: 20px;
    color: white;
    font-size: 14px;
    z-index: 10;
}

/* Incoming Call Notification */
.incoming-call {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 10002;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.incoming-call-content {
    padding: 30px;
    text-align: center;
    min-width: 300px;
}

.caller-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.caller-details h4 {
    margin: 0;
    font-size: 20px;
    color: #1a1a2e;
}

.caller-details p {
    margin: 5px 0 20px;
    color: #666;
}

.call-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.accept-call,
.reject-call {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s;
}

.accept-call {
    background: #00a884;
    color: white;
}

.accept-call:hover {
    transform: scale(1.1);
}

.reject-call {
    background: #e74c3c;
    color: white;
}

.reject-call:hover {
    transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .local-video {
        width: 100px;
        height: 133px;
        bottom: 80px;
        right: 10px;
    }

    .control-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .call-controls {
        gap: 15px;
        padding: 10px 20px;
    }

    .incoming-call-content {
        padding: 20px;
        min-width: 280px;
    }
}
