/**
 * MediationConnect - Modular Pre-Join Stylesheet
 */

.mc-prejoin-wrapper {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 1.5rem;
}

.mc-prejoin-card {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 640px;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.mc-prejoin-header h2 {
    margin: 0 0 0.5rem 0;
    color: #1e293b;
    font-size: 1.4rem;
}

.mc-prejoin-header p {
    margin: 0 0 1.5rem 0;
    color: #64748b;
    font-size: 0.95rem;
}

.mc-prejoin-media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 640px) {
    .mc-prejoin-media-grid {
        grid-template-columns: 1fr;
    }
}

.mc-camera-preview-box {
    position: relative;
    background: #0f172a;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mc-camera-preview-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mc-video-placeholder {
    position: absolute;
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.9rem;
}

.mc-device-toggles {
    position: absolute;
    bottom: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.mc-device-btn {
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.mc-device-btn.off {
    background: #ef4444;
}

.mc-meter-bar-track {
    height: 8px;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
    margin: 0.35rem 0;
}

.mc-meter-bar-fill {
    height: 100%;
    background: #10b981;
    transition: width 0.1s ease-out;
}
