/* Room Loading Overlay */
.room-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.room-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.room-loading-overlay .loading-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.room-loading-overlay .spinner-container {
    margin-bottom: 15px;
}

.room-loading-overlay .loading-title {
    margin: 15px 0 5px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.room-loading-overlay .loading-message {
    color: #666;
    font-size: 14px;
    margin-bottom: 0;
}

.room-loading-overlay .progress {
    height: 6px;
    margin: 15px auto 0;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.room-loading-overlay .progress-bar {
    background: linear-gradient(90deg, #007bff, #0056b3);
    transition: width 0.3s ease;
}

/* Room type badges */
.room-type-badge {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.room-badges {
    display: flex;
    gap: 5px;
    margin-top: 5px;
    flex-wrap: wrap;
}

/* Room card enhancements */
.sesli-room-card {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.sesli-room-card:hover {
    transform: translateX(5px);
    background-color: rgba(0, 123, 255, 0.05);
}

.sesli-room-card.active {
    background: linear-gradient(90deg, rgba(0, 123, 255, 0.1), transparent);
    border-left: 3px solid #007bff;
}

.sesli-room-card .room-icon-placeholder {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

/* Room type specific icons */
.sesli-room-card[data-room-type="gaming"] .room-icon-placeholder {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.sesli-room-card[data-room-type="music"] .room-icon-placeholder {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.sesli-room-card[data-room-type="education"] .room-icon-placeholder {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.sesli-room-card[data-room-type="business"] .room-icon-placeholder {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.sesli-room-card[data-room-type="social"] .room-icon-placeholder {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.sesli-room-card .room-info {
    flex: 1;
    min-width: 0;
}

.sesli-room-card .room-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sesli-room-card .room-name i {
    font-size: 12px;
    color: #6c757d;
}

.sesli-room-card .room-description {
    font-size: 12px;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

/* Chat area loading state */
.sesli-chat-area {
    transition: opacity 0.3s ease;
}

/* Room announcement styles */
.room-announcement {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.room-announcement .announcement-content {
    font-size: 14px;
    line-height: 1.5;
}

/* Room features indicators */
.room-features {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}

.room-feature {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: white;
    border-radius: 5px;
    font-size: 12px;
    color: #666;
}

.room-feature.enabled {
    color: #28a745;
    border: 1px solid #28a745;
}

.room-feature.disabled {
    color: #dc3545;
    border: 1px solid #dc3545;
    opacity: 0.6;
}

.room-feature i {
    font-size: 14px;
}

/* Toast notifications for permissions */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    max-width: 400px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-notification.error {
    border-left: 4px solid #dc3545;
}

.toast-notification.success {
    border-left: 4px solid #28a745;
}

.toast-notification.warning {
    border-left: 4px solid #ffc107;
}

.toast-notification.info {
    border-left: 4px solid #17a2b8;
}

.toast-notification .toast-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-notification .toast-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0;
    font-size: 18px;
}

.toast-notification .toast-close:hover {
    color: #333;
}
