/* Main Layout Styles */
body {
    min-height: 100vh;
    background-color: #111827;
}

/* Video Container Styles */
.video-container {
    aspect-ratio: 16/9;
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Control Button Styles */
.control-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background-color: #374151;
    color: white;
}

.control-button:hover {
    transform: scale(1.1);
    background-color: #4B5563;
}

.control-button.muted {
    background-color: #DC2626;
}

/* Room Control Panel */
.room-controls {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
}

.room-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Bottom Control Panel */
.control-panel {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 28rem;
    padding: 0 1rem;
    z-index: 1000;
    /* Initially hidden until connection established */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.control-panel.active {
    opacity: 1;
    pointer-events: auto;
}

.control-panel-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: #1F2937;
    padding: 1rem 1.5rem;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.leave-button {
    width: auto;
    min-width: 100px;
    border-radius: 24px;
    white-space: nowrap;
    background-color: #DC2626;
    color: white;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
}

.leave-button:hover {
    background-color: #B91C1C;
}

/* Responsive Styles */
@media (max-width: 640px) {
    .room-input-group {
        width: 100%;
    }

    .room-input-group input {
        flex: 1;
        min-width: 0;
    }

    .control-panel-inner {
        padding: 0.5rem 1rem;
    }

    .control-button {
        width: 40px;
        height: 40px;
    }
    
    .join-button {
        white-space: nowrap;
    }
}

/* Add these styles at the end of your existing styles.css file */

/* Control Panel Visibility - new styles */
.control-panel {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.control-panel.active {
    opacity: 1;
    pointer-events: auto;
}
