* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.navbar {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    margin-bottom: 30px;
}

.navbar-brand {
    color: white !important;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.hero-section {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.join-form-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    max-width: 500px;
    width: 100%;
}

.card h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #4a5568;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #4a5568;
    font-size: 1.1rem;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.btn-control {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    min-width: auto;
}

.btn-control:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.btn-control.muted {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}

.instructions {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 30px;
    color: white;
    backdrop-filter: blur(10px);
}

.instructions h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.instructions ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.instructions li {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Video Room Styles */
.video-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.video-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 12px;
}

.video-controls h3 {
    color: #4a5568;
    margin: 0;
    font-size: 1.3rem;
}

.control-buttons {
    display: flex;
    gap: 15px;
}

.videos {
    display: grid;
    gap: 25px;
    min-height: 450px;
}

.video-wrapper {
    position: relative;
    background: #1a202c;
    border-radius: 12px;
    overflow: hidden;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.local-video {
    grid-column: 1;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-label {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.remote-videos {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.status-message {
    text-align: center;
    padding: 20px;
    margin: 25px 0;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
}

.status-message.success {
    background: #c6f6d5;
    color: #2f855a;
    border: 2px solid #9ae6b4;
}

.status-message.error {
    background: #fed7d7;
    color: #c53030;
    border: 2px solid #feb2b2;
}

.status-message.info {
    background: #bee3f8;
    color: #2c5282;
    border: 2px solid #90cdf4;
}

.participants-list {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.participants-list h3 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.participants-list ul {
    list-style: none;
}

.participants-list li {
    padding: 12px 15px;
    background: #f7fafc;
    margin-bottom: 8px;
    border-radius: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 1.1rem;
}

/* Grid Layout */
.videos.has-remote {
    grid-template-columns: 1fr 2fr;
}

/* Footer */
.footer {
    margin-top: 50px;
    padding: 20px 0;
    text-align: center;
    color: rgba(255,255,255,0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .card {
        padding: 25px;
        margin: 0 15px;
    }
    
    .button-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        min-width: auto;
    }
    
    .video-controls {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .videos {
        grid-template-columns: 1fr;
    }
    
    .videos.has-remote {
        grid-template-columns: 1fr;
    }
    
    .remote-videos {
        grid-template-columns: 1fr;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 