/* ============================================
   GLOBAL RESET & BASE STYLES
   ============================================ */

* {
    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;
    padding-top: 0;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* ============================================
   GLOBAL HEADER STYLES
   ============================================ */

.global-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo Section */
.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
    gap: 15px;
}

.header-logo {
    height: 50px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    background: white;
    padding: 5px;
}

.header-logo:hover {
    transform: scale(1.05);
}

.site-title {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Navigation */
.header-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px 0 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-link:active {
    transform: translateY(0);
}

.nav-icon {
    font-size: 20px;
}

.nav-text {
    font-size: 14px;
}

/* Active Link */
.nav-link.active {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ============================================
   AUTHENTICATION PAGES (index.html)
   ============================================ */

.auth-container {
    max-width: 400px;
    margin: 50px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.auth-container h1 {
    text-align: center;
    color: #667eea;
    margin-bottom: 30px;
    font-size: 28px;
}

.auth-form h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: #667eea;
}

.auth-toggle {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.auth-toggle a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.auth-toggle a:hover {
    text-decoration: underline;
}

/* ============================================
   DASHBOARD PAGE
   ============================================ */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.dashboard-header h1 {
    color: #667eea;
    font-size: 28px;
    margin-bottom: 5px;
}

.user-info {
    color: #666;
    font-size: 14px;
}

.user-info span {
    font-weight: 600;
    color: #333;
}

/* Create Room Section */
.create-room-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.create-room-section h2 {
    color: #667eea;
    margin-bottom: 20px;
}

.create-room-form {
    display: flex;
    gap: 10px;
}

.create-room-form input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.create-room-form input:focus {
    outline: none;
    border-color: #667eea;
}

/* Rooms Section */
.rooms-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    color: #667eea;
}

.section-actions {
    display: flex;
    gap: 10px;
}

.rooms-list {
    display: grid;
    gap: 15px;
}

.room-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.room-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.room-info h3 {
    color: #333;
    margin-bottom: 8px;
}

.room-meta {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

.room-actions {
    display: flex;
    gap: 10px;
}

.loading, .no-rooms, .error {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

.error {
    color: #dc3545;
}

/* ============================================
   ROOM PAGE - 3 COLUMN LAYOUT
   ============================================ */

.room-container {
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    gap: 20px;
    height: calc(100vh - 160px);
    margin: 20px;
}

/* Left Sidebar - Participants */
.participants-sidebar {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.sidebar-header h3 {
    color: #667eea;
    font-size: 18px;
}

.participant-count {
    background: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.participants-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.participant-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.participant-card:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.participant-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.participant-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.participant-status {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.participant-status.online {
    color: #28a745;
}

.btn-invite {
    padding: 6px 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-invite:hover {
    background: #5568d3;
    transform: scale(1.05);
}

/* Center - Video Area */
.video-area {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.room-header h2 {
    color: #667eea;
    font-size: 22px;
}

.room-actions {
    display: flex;
    gap: 10px;
}

.videos-container {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.video-wrapper {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.screen-share-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #667eea;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.control-btn {
    padding: 12px 24px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.control-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.control-btn:active {
    transform: translateY(0);
}

.control-btn.muted {
    background: #dc3545;
}

.control-btn.video-off {
    background: #dc3545;
}

.control-btn.sharing {
    background: #28a745;
}

/* Right Sidebar - Chat */
.chat-sidebar {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-sidebar {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    
    /* ADD THIS LINE: */
    height: 100%;
}

.chat-message {
    padding: 12px;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #667eea;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-message.system {
    background: #fff3cd;
    border-left-color: #ffc107;
    font-style: italic;
    text-align: center;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.message-username {
    font-weight: 600;
    color: #667eea;
    font-size: 14px;
}

.message-time {
    font-size: 11px;
    color: #999;
}

.message-text {
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.chat-input-container {
    display: flex;
    gap: 10px;
}

.chat-input-container input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    width: auto;
    min-width: 50px; /* optional */
}

.chat-input-container input:focus {
    outline: none;
    border-color: #667eea;
}

/* ============================================
   INVITE POPUP
   ============================================ */

.invite-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.invite-popup-overlay.show {
    display: flex;
}

.invite-popup {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.3s ease;
}

.invite-popup h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 24px;
}

.invite-popup p {
    color: #333;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

.invite-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
    padding: 12px 24px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    padding: 12px 24px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

.btn-danger {
    padding: 12px 24px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.btn-danger:active {
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets */
@media (max-width: 1024px) {
    .room-container {
        grid-template-columns: 200px 1fr 250px;
        gap: 15px;
    }
    
    .videos-container {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .room-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
        height: auto;
    }
    
    .participants-sidebar,
    .chat-sidebar {
        max-height: 300px;
    }
    
    .videos-container {
        grid-template-columns: 1fr;
        min-height: 400px;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .create-room-form {
        flex-direction: column;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .room-actions,
    .section-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Header Responsive */
    .logo-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-logo {
        height: 40px;
    }
    
    .site-title {
        font-size: 20px;
    }
    
    .header-nav {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .nav-link {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .nav-icon {
        font-size: 18px;
    }
    
    .nav-text {
        font-size: 12px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .auth-container {
        padding: 30px 20px;
    }
    
    .room-container {
        margin: 10px;
        gap: 10px;
    }
    
    .controls {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .control-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .invite-popup {
        padding: 30px 20px;
    }
    
    .invite-actions {
        flex-direction: column;
    }
    
    .nav-link {
        flex-direction: column;
        gap: 4px;
        padding: 8px 12px;
    }
    
    .nav-icon {
        font-size: 20px;
    }
    
    .nav-text {
        font-size: 11px;
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}




/* ============================================
   MISSING: CONTROL BUTTON STATES (Muted/Off)
   ============================================ */

.control-btn.muted,
.control-btn.video-off {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.control-btn.muted:hover,
.control-btn.video-off:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}

.control-btn.sharing {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.control-btn.sharing:hover {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
}

/* ============================================
   MISSING: INVITE BUTTON IN PARTICIPANTS
   ============================================ */

.participant-item .btn-invite {
    padding: 6px 12px;
    font-size: 12px;
    margin-left: auto;
    min-width: auto;
}

.participants-sidebar .btn-invite {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.participants-sidebar .btn-invite:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ============================================
   MISSING: SCREEN SHARE BADGE
   ============================================ */

.screen-share-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
    backdrop-filter: blur(5px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   MISSING: PARTICIPANT COUNT BADGE
   ============================================ */

.participant-count {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.participants-sidebar .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* ============================================
   MISSING: INVITE NOTIFICATION BADGE
   ============================================ */

.invite-notification {
    position: fixed;
    top: 90px;
    right: 20px;
    background: white;
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    min-width: 300px;
    animation: slideInRight 0.4s ease-out;
    border-left: 5px solid #667eea;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.invite-notification h4 {
    margin: 0 0 10px 0;
    color: #667eea;
    font-size: 16px;
    font-weight: 700;
}

.invite-notification p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

.invite-notification-actions {
    display: flex;
    gap: 10px;
}

.invite-notification-actions button {
    flex: 1;
    padding: 10px;
    font-size: 13px;
}

/* ============================================
   MISSING: ONLINE STATUS INDICATOR
   ============================================ */

.participant-status {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #27ae60;
    margin-right: 8px;
    box-shadow: 0 0 8px rgba(39, 174, 96, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.participant-status.offline {
    background: #95a5a6;
    box-shadow: none;
    animation: none;
}

/* ============================================
   MISSING: ROOM ID COPY BUTTON
   ============================================ */

.room-id-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9ff;
    padding: 12px 20px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.room-id-display code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    background: white;
    padding: 6px 12px;
    border-radius: 6px;
}

.btn-copy {
    padding: 8px 16px;
    font-size: 13px;
    min-width: auto;
}

/* ============================================
   MISSING: EMPTY PARTICIPANTS STATE
   ============================================ */

.participants-list:empty::after {
    content: 'No participants yet';
    display: block;
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
    font-size: 14px;
}

/* ============================================
   MISSING: CHAT TIMESTAMP
   ============================================ */

.chat-message .message-time {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.4);
    margin-top: 5px;
    display: block;
}

.chat-message.own-message .message-time {
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   MISSING: SYSTEM MESSAGES IN CHAT
   ============================================ */

.chat-message.system {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    text-align: center;
    font-style: italic;
    color: #856404;
}

.chat-message.system strong {
    color: #856404;
}

/* ============================================
   MISSING: VIDEO MUTED INDICATOR
   ============================================ */

.video-muted-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px 30px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    z-index: 5;
}

.video-muted-indicator::before {
    content: '🔇';
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

/* ============================================
   MISSING: CONNECTION QUALITY INDICATOR
   ============================================ */

.connection-indicator {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 3px;
    z-index: 10;
}

.connection-indicator span {
    width: 4px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.connection-indicator.good span {
    background: #27ae60;
}

.connection-indicator.medium span:nth-child(1),
.connection-indicator.medium span:nth-child(2) {
    background: #f39c12;
}

.connection-indicator.poor span:nth-child(1) {
    background: #e74c3c;
}

/* ============================================
   MISSING: HIDDEN CLASS (Important!)
   ============================================ */

.hidden {
    display: none !important;
}

/* ============================================
   MISSING: SCROLLBAR STYLING
   ============================================ */

.participants-list::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar,
.videos-container::-webkit-scrollbar {
    width: 8px;
}

.participants-list::-webkit-scrollbar-track,
.chat-messages::-webkit-scrollbar-track,
.videos-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.participants-list::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb,
.videos-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.participants-list::-webkit-scrollbar-thumb:hover,
.chat-messages::-webkit-scrollbar-thumb:hover,
.videos-container::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}

/* ============================================
   AVAILABLE ROOMS - 4 COLUMN GRID ONLY
   ============================================ */

#available-rooms-list,
.available-rooms-grid,
#available-rooms .rooms-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
}

/* Responsive for Available Rooms only */
@media (max-width: 1400px) {
    #available-rooms-list,
    .available-rooms-grid,
    #available-rooms .rooms-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 992px) {
    #available-rooms-list,
    .available-rooms-grid,
    #available-rooms .rooms-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    #available-rooms-list,
    .available-rooms-grid,
    #available-rooms .rooms-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   DASHBOARD - AVAILABLE ROOMS 4 COLUMN GRID
   ============================================ */

/* Target only the rooms list on dashboard */
.rooms-list {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    margin-top: 20px !important;
}

/* Make sure room cards fit properly */
.rooms-list .room-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 200px;
}

.rooms-list .room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
}

/* Loading and empty states should span all columns */
.rooms-list .loading,
.rooms-list .empty-state,
.rooms-list p {
    grid-column: 1 / -1; /* Span all columns */
    text-align: center;
    padding: 40px;
    color: #718096;
}

/* Responsive breakpoints */

/* 3 columns on large tablets (1200px - 1400px) */
@media (max-width: 1400px) {
    .rooms-list {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* 2 columns on tablets (768px - 1200px) */
@media (max-width: 992px) {
    .rooms-list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

/* 1 column on mobile (< 768px) */
@media (max-width: 768px) {
    .rooms-list {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .rooms-list .room-card {
        min-height: auto;
        padding: 20px;
    }
}

/* ============================================
   ENHANCED ROOM CARDS FOR DASHBOARD
   ============================================ */

.rooms-list .room-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 12px 0;
    word-wrap: break-word;
}

.rooms-list .room-card .room-id {
    font-size: 12px;
    color: #718096;
    font-family: 'Courier New', monospace;
    background: #f7fafc;
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 12px;
}

.rooms-list .room-card .room-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    color: #718096;
    font-size: 13px;
    margin-bottom: 16px;
}

.rooms-list .room-card .room-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rooms-list .room-card .room-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.rooms-list .room-card .room-actions button {
    flex: 1;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.rooms-list .room-card .btn-join {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.rooms-list .room-card .btn-join:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.rooms-list .room-card .btn-delete {
    background: white;
    color: #e53e3e;
    border: 2px solid #e53e3e;
}

.rooms-list .room-card .btn-delete:hover {
    background: #e53e3e;
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}
