/* Room Selection Styles - Responsive Design */

* {
    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;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.room-card {
    background: white;
    border-radius: 15px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.room-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #4CAF50, #45a049);
}

.room-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.room-card h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.room-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.4;
}

.room-status {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.client-count, .expert-count {
    display: block;
    margin: 2px 0;
}

.client-count {
    color: #ff6b6b;
    font-weight: 500;
}

.expert-count {
    color: #4CAF50;
    font-weight: 500;
}

.join-btn {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
}

.join-btn:hover {
    background: linear-gradient(45deg, #45a049, #3d8b40);
    transform: scale(1.05);
}

.join-btn:active {
    transform: scale(0.98);
}

.footer {
    text-align: center;
    color: white;
    margin-top: 30px;
}

.footer a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border: 2px solid #ffd700;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.footer a:hover {
    background: #ffd700;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .room-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .room-card {
        padding: 25px 20px;
    }
    
    .room-icon {
        font-size: 2.5rem;
        height: 60px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .room-card {
        padding: 20px 15px;
    }
    
    .join-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

/* Status indicators */
.room-card.has-experts {
    border-left: 4px solid #4CAF50;
}

.room-card.has-waiting-clients {
    border-right: 4px solid #ff6b6b;
}

/* Loading state */
.join-btn.loading {
    background: #ccc;
    cursor: not-allowed;
}

.join-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
