/* Video Calling Styles */
.umfn-video-calling-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.umfn-video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--umfn-border);
}

.umfn-video-header h3 {
    margin: 0;
    color: var(--umfn-text);
    font-size: 1.4rem;
}

.umfn-video-status {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.umfn-video-status.info {
    background: #e3f2fd;
    color: #1976d2;
}

.umfn-video-status.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.umfn-video-status.error {
    background: #ffebee;
    color: #c62828;
}

.umfn-video-main {
    position: relative;
    min-height: 400px;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.umfn-video-local-container,
.umfn-video-remote-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.umfn-video-local-container video,
.umfn-video-remote-container video {
    width: 100%;
    height: auto;
    min-height: 400px;
    object-fit: cover;
    background: #000;
}

.umfn-video-label {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 10;
}

.umfn-video-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 15px;
    border-radius: 50px;
    z-index: 20;
}

.umfn-video-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.umfn-video-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.umfn-video-btn.umfn-end-call-btn {
    background: #f44336;
}

.umfn-video-btn.umfn-end-call-btn:hover {
    background: #d32f2f;
}

.umfn-video-initiation {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.umfn-video-initiation h4 {
    margin: 0 0 15px 0;
    color: var(--umfn-text);
    font-size: 1.1rem;
}

.umfn-call-select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--umfn-border);
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 1rem;
    background: white;
}

.umfn-call-select:focus {
    outline: none;
    border-color: var(--umfn-primary);
}

.umfn-start-call-btn {
    width: 100%;
    padding: 12px;
    background: var(--umfn-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.umfn-start-call-btn:hover:not(:disabled) {
    background: var(--umfn-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3);
}

.umfn-start-call-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.umfn-no-users {
    text-align: center;
    color: #666;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

/* Incoming Call Modal */
#umfn-incoming-call-modal .umfn-modal-content {
    max-width: 400px;
}

#umfn-incoming-call-modal .umfn-modal-body {
    text-align: center;
}

#umfn-incoming-call-modal p {
    font-size: 1.2rem;
    margin: 20px 0;
}

#umfn-caller-name {
    font-weight: bold;
    color: var(--umfn-primary);
}

.umfn-call-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.umfn-accept-call-btn,
.umfn-decline-call-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.umfn-accept-call-btn {
    background: #4caf50;
    color: white;
}

.umfn-accept-call-btn:hover {
    background: #45a049;
    transform: scale(1.05);
}

.umfn-decline-call-btn {
    background: #f44336;
    color: white;
}

.umfn-decline-call-btn:hover {
    background: #da190b;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .umfn-video-controls {
        bottom: 10px;
        padding: 8px 12px;
    }
    
    .umfn-video-btn {
        width: 35px;
        height: 35px;
    }
    
    .umfn-video-main {
        min-height: 300px;
    }
    
    .umfn-video-local-container video,
    .umfn-video-remote-container video {
        min-height: 300px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .umfn-video-main {
        background: #333;
    }
    
    .umfn-video-initiation {
        background: #2d2d2d;
    }
    
    .umfn-video-initiation h4 {
        color: #fff;
    }
    
    .umfn-call-select {
        background: #333;
        border-color: #444;
        color: #fff;
    }
    
    .umfn-call-select option {
        background: #333;
    }
    
    .umfn-no-users {
        background: #333;
        color: #ccc;
    }
}