/* Room Setup Styles */
.room-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.room-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.room-header h1 {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    color: #333;
}

.room-header p {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 40px;
}

.room-actions {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.action-group {
    padding: 20px;
    border-radius: 15px;
    background: #f8f9fa;
}

.action-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.action-group h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.3em;
}

.action-group p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.btn-create, .btn-join {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-create:hover, .btn-join:hover {
    transform: translateY(-2px);
}

.input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

#roomInput {
    flex: 1;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 1em;
    outline: none;
}

#roomInput:focus {
    border-color: #667eea;
}

.divider-line {
    height: 1px;
    background: #e0e0e0;
    margin: 10px 0;
}

/* Room View Styles */
.room-view {
    min-height: 100vh;
    background: #f5f7fa;
    padding: 20px;
}

.room-header-bar {
    background: white;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.room-info h2 {
    margin: 0;
    color: #333;
}

.room-code {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
}

.status-indicator {
    font-size: 0.9em;
    color: #28a745;
    margin-top: 5px;
}

.btn-leave {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
}

.room-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.left-panel, .right-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.invite-section, .participants-section, .video-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.invite-section h3, .participants-section h3, .video-section h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.2em;
}

.invite-box {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.invite-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #f8f9fa;
}

.btn-copy {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 10px;
    cursor: pointer;
}

.invite-tip {
    color: #666;
    font-size: 0.9em;
    margin: 0;
}

.participants-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.participant-item {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.participant-avatar {
    font-size: 1.5em;
}

.participant-name {
    font-weight: 600;
    color: #333;
    flex: 1;
}

.participant-status {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
}

.video-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#videoUrl {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
}

.btn-load {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}

.video-placeholder {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 15px;
    padding: 60px;
    text-align: center;
    color: #666;
}

.placeholder-icon {
    font-size: 4em;
    margin-bottom: 15px;
}

.notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.notification {
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Video Queue Styles */
.video-queue-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.video-queue-section h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.2em;
}

.queue-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.queue-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid transparent;
}

.queue-item.current {
    background: linear-gradient(135deg, #667eea20, #764ba220);
    border-left-color: #667eea;
}

.queue-number {
    background: #667eea;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.queue-info {
    flex: 1;
}

.queue-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.queue-user {
    color: #666;
    font-size: 12px;
}

.playing-indicator {
    color: #28a745;
    font-size: 18px;
    animation: pulse 1.5s infinite;
}

.btn-next {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 15px;
    width: 100%;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@media (max-width: 768px) {
    .room-content {
        grid-template-columns: 1fr;
    }
}