/* Global text consistency */
* {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 14px;
    color: #00ff00;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
    display: grid;
    grid-template-rows: minmax(2.5rem, 12vmin) 1fr 5rem;
    height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    background: #000;
    color: #00ff00;
    overflow: hidden;
    position: relative;
}

/* Futuristic background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20px 30px, rgba(0, 255, 0, 0.1), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(0, 255, 0, 0.1), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(0, 255, 0, 0.1), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(0, 255, 0, 0.1), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(0, 255, 0, 0.1), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: particle-float 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes particle-float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

.hidden {
    display: none !important;
}

/* Futuristic Terminal Container */
.terminal {
    background: #000;
    border: 2px solid #00ff00;
    border-radius: 8px;
    width: calc(100vw - 40px);
    height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 0 20px rgba(0, 255, 0, 0.3),
        0 0 40px rgba(0, 255, 0, 0.1),
        inset 0 0 20px rgba(0, 255, 0, 0.1);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 14px;
    color: #00ff00;
    max-width: none;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.terminal {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Holographic Border Effect */
.terminal::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        linear-gradient(45deg, transparent 49%, rgba(0, 255, 0, 0.1) 50%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(0, 255, 0, 0.05) 50%, transparent 51%);
    background-size: 4px 4px, 8px 8px;
    animation: scan-lines 3s linear infinite;
    pointer-events: none;
    z-index: 1;
}

/* Corner Indicators */
.terminal::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: 
        linear-gradient(45deg, #00ff00 0%, transparent 20%),
        linear-gradient(-45deg, #00ff00 0%, transparent 20%);
    background-size: 20px 20px;
    opacity: 0.3;
    animation: corner-pulse 2s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

/* Scan Lines Animation */
@keyframes scan-lines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* Corner Pulse Animation */
@keyframes corner-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Terminal header with futuristic styling */
.terminal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(90deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    border-bottom: 1px solid #333;
    font-size: 14px;
    color: #00ff00;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    position: relative;
    z-index: 3;
    gap: 32px;
}

.terminal-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.1), transparent);
    animation: header-scan 4s linear infinite;
    pointer-events: none;
}

@keyframes header-scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Enhanced Notification Controls */
.notification-controls {
    display: flex;
    align-items: center;
}

.notification-btn {
    background: none;
    border: 1.5px solid #00ff00;
    color: #00ff00;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(.4,2,.6,1), box-shadow 0.2s;
    min-width: 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.notification-btn::before {
    content: '';
    margin-right: 0;
    display: none;
}
.notification-btn.enabled {
    background: rgba(0,255,0,0.12);
    color: #00ff00;
    border-color: #00ff00;
    box-shadow: 0 0 10px 2px #00ff00;
    animation: notif-pulse 1.2s infinite alternate;
}
@keyframes notif-pulse {
    0% { box-shadow: 0 0 10px 2px #00ff00; }
    100% { box-shadow: 0 0 20px 4px #00ff00; }
}
.notification-btn.disabled {
    border-color: #666;
    color: #666;
    background: #222;
    cursor: not-allowed;
    box-shadow: none;
}
.notification-btn.disabled::before {
    filter: grayscale(1) opacity(0.5);
}
.notification-btn:hover:not(.disabled) {
    background: #00ff00;
    color: #000;
    border-color: #00ff00;
    box-shadow: 0 0 16px 4px #00ff00;
}
.notification-btn:hover:not(.disabled)::before {
    filter: drop-shadow(0 0 6px #00ff00) brightness(1.5);
}

/* Enhanced Commands Display */
.commands-display {
    padding: 8px 12px;
    background: linear-gradient(90deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    border-bottom: 1px solid #333;
    font-size: 14px;
    color: #00ff00;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    display: none;
    position: relative;
    z-index: 3;
}

.commands-text {
    opacity: 0.8;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

/* Terminal body with depth */
.terminal-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    background: #000;
    font-size: 14px;
    position: relative;
    z-index: 3;
    min-height: 0;
}

/* Enhanced Welcome Screen */
.welcome-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 20px;
    font-size: 14px;
    position: relative;
    z-index: 3;
    min-height: 0;
}

.ascii-art {
    margin-bottom: 20px;
    font-size: 8px;
    line-height: 1.0;
    /* text-shadow: 0 0 10px rgba(0, 255, 0, 0.8); */
    /* animation: ascii-glow 3s ease-in-out infinite alternate; */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 24px 0;
    background: none !important;
    overflow-x: hidden;
    min-width: 0;
}

.ascii-art::before {
    content: none !important;
    display: none !important;
}

@keyframes ascii-glow {
    0% { text-shadow: 0 0 10px rgba(0, 255, 0, 0.8); }
    100% { text-shadow: 0 0 20px rgba(0, 255, 0, 1), 0 0 30px rgba(0, 255, 0, 0.5); }
}

@keyframes ascii-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

.ascii-art pre {
    font-size: clamp(0.08rem, 1.5vw, 0.45rem);
    margin: 10px auto;
    color: #00ff00;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    text-align: center;
    display: block;
    line-height: 1.0;
    padding: 0 5vw;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: pre;
    overflow-x: hidden;
    overflow-y: hidden;
}

.welcome-text {
    text-align: center;
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

/* Enhanced Chat Screen */
.chat-screen {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    font-size: 14px;
    position: relative;
    z-index: 3;
}

.chat-screen.hidden {
    display: none;
}

/* Enhanced Messages Container */
.messages {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 12px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    min-height: 0;
    max-height: 100%;
}

.message {
    margin-bottom: 8px;
    font-size: 14px;
    word-wrap: break-word;
    /* animation: message-slide-in 0.3s ease-out; */
    position: relative;
}

@keyframes message-slide-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.system {
    color: #00ff00;
    font-style: italic;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.message.user {
    font-size: 14px;
}

.message .username {
    color: #00cc00;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(0, 204, 0, 0.5);
}

.message .content {
    color: #00ff00;
    word-wrap: break-word;
    text-shadow: 0 0 3px rgba(0, 255, 0, 0.3);
}

.message .mentioned-user {
    color: #ff6666;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 102, 102, 0.8);
    background-color: rgba(255, 102, 102, 0.1);
    padding: 1px 3px;
    border-radius: 2px;
    animation: mention-pulse 2s ease-in-out infinite;
}

@keyframes mention-pulse {
    0%, 100% { text-shadow: 0 0 8px rgba(255, 102, 102, 0.8); }
    50% { text-shadow: 0 0 15px rgba(255, 102, 102, 1), 0 0 20px rgba(255, 102, 102, 0.5); }
}

.message .timestamp {
    color: #666;
    font-size: 12px;
    margin-left: 8px;
    opacity: 0.7;
}

/* Enhanced Input Area with Futuristic Cursor */
.input-area {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(90deg, #000 0%, #0a0a0a 50%, #000 100%);
    border-bottom: 1px solid #333;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 14px;
    color: #00ff00;
    position: relative;
    z-index: 3;
}

.prompt {
    margin-right: 8px;
    color: #00ff00;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    /* animation: prompt-blink 2s ease-in-out infinite; */
}

@keyframes prompt-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}

#message-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #00ff00;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 14px;
    caret-color: #00ff00;
    text-shadow: 0 0 3px rgba(0, 255, 0, 0.3);
}

#message-input::placeholder {
    color: #666;
    opacity: 0.7;
    font-size: 14px;
}

/* Futuristic Cursor Animation */
#message-input:focus {
    caret-color: #00ff00;
    /* animation: cursor-blink 1s infinite; */
}

@keyframes cursor-blink {
    0%, 50% { caret-color: #00ff00; }
    51%, 100% { caret-color: transparent; }
}

#username-input {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: none;
    outline: none;
    color: #00ff00;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 14px;
    text-align: center;
    caret-color: #00ff00;
    text-shadow: 0 0 3px rgba(0, 255, 0, 0.3);
}

#username-input::placeholder {
    color: #666;
    opacity: 0.7;
    font-size: 14px;
}

/* Enhanced Join Button */
#join-btn {
    background: transparent;
    border: 1px solid #00ff00;
    color: #00ff00;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 14px;
    padding: 12px 24px;
    cursor: pointer;
    margin-top: 16px;
    transition: none !important;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

#join-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.2), transparent);
    transition: none !important;
}

#join-btn:hover::before {
    left: 100%;
}

#join-btn:hover {
    color: #00cc00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
    transform: scale(1.02);
}

#join-btn:disabled {
    color: #666;
    cursor: not-allowed;
    border-color: #666;
}

/* Enhanced Countdown and Room Info */
.countdown-container, .room-info {
    font-size: 14px;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.countdown-label, .room-label {
    font-size: 14px;
}

.countdown-timer, .current-room {
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.8);
}

.countdown-timer.urgent {
    color: #ff6666;
    /* animation: urgent-pulse 0.5s infinite; */
    text-shadow: 0 0 15px rgba(255, 102, 102, 0.8);
}

@keyframes urgent-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Enhanced Error and Success Messages */
.error, .success {
    padding: 8px 12px;
    margin: 8px 0;
    border-radius: 4px;
    font-size: 14px;
    /* animation: message-slide-in 0.3s ease-out; */
    position: relative;
    overflow: hidden;
}

.error {
    background: linear-gradient(90deg, rgba(255, 0, 0, 0.1) 0%, rgba(255, 0, 0, 0.05) 100%);
    color: #ff6666;
    border-left: 3px solid #ff6666;
    text-shadow: 0 0 5px rgba(255, 102, 102, 0.5);
}

.success {
    background: linear-gradient(90deg, rgba(0, 255, 0, 0.1) 0%, rgba(0, 255, 0, 0.05) 100%);
    color: #00ff00;
    border-left: 3px solid #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

/* Enhanced Notifications */
.reset-notification, .room-deleted-notification, .clear-notification {
    padding: 8px 12px;
    margin: 8px 0;
    background: linear-gradient(90deg, rgba(255, 165, 0, 0.1) 0%, rgba(255, 165, 0, 0.05) 100%);
    color: #ffa500;
    border-left: 3px solid #ffa500;
    font-size: 14px;
    /* animation: message-slide-in 0.3s ease-out; */
    text-shadow: 0 0 5px rgba(255, 165, 0, 0.5);
}

/* Enhanced Mention Notifications */
.mention-notification {
    padding: 12px 16px;
    margin: 12px 0;
    background: linear-gradient(90deg, rgba(255, 0, 0, 0.15) 0%, rgba(255, 0, 0, 0.05) 100%);
    color: #ff8888;
    border: 2px solid #ff6666;
    border-left: 5px solid #ff0000;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    /* animation: mention-pulse 0.5s ease-in-out; */
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.mention-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    /* animation: mention-shine 2s infinite; */
}

.mention-icon {
    color: #ff0000;
    font-weight: bold;
    font-size: 18px;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

.mention-text {
    flex: 1;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 136, 136, 0.5);
}

@keyframes mention-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes mention-shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Enhanced Terminal Border Flash for Mentions */
.terminal.mention-flash {
    border-color: #ff0000 !important;
    box-shadow: 
        0 0 20px rgba(255, 0, 0, 0.5),
        0 0 40px rgba(255, 0, 0, 0.3);
    /* animation: border-flash 1s ease-in-out; */
}

@keyframes border-flash {
    0% { 
        border-color: #00ff00; 
        box-shadow: 0 0 0 rgba(255, 0, 0, 0); 
    }
    50% { 
        border-color: #ff0000; 
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.5), 0 0 40px rgba(255, 0, 0, 0.3); 
    }
    100% { 
        border-color: #00ff00; 
        box-shadow: 0 0 0 rgba(255, 0, 0, 0); 
    }
}

/* Enhanced Scrollbar Styling */
.messages::-webkit-scrollbar {
    width: 8px;
}

.messages::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.messages::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ff00 0%, #00cc00 100%);
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.messages::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00cc00 0%, #00ff00 100%);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

/* Enhanced Code Execution Results */
.code-execution-result {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 13px;
}

.code-execution {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.9) 100%);
    border: 1px solid #333;
    border-radius: 4px;
    margin: 8px 0;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
    position: relative;
}

.code-execution::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, #00ff00, transparent);
    /* animation: code-scan 2s linear infinite; */
}

@keyframes code-scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.code-execution-header {
    background: linear-gradient(90deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    padding: 8px 12px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-language {
    color: #00ff00;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.code-status {
    font-size: 12px;
    font-weight: bold;
}

.code-status.success {
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.code-status.error {
    color: #ff6666;
    text-shadow: 0 0 5px rgba(255, 102, 102, 0.5);
}

.code-input, .code-output, .code-error {
    padding: 8px 12px;
}

.code-label {
    color: #888;
    font-size: 11px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.code-block, .output-block, .error-block {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.7) 100%);
    border: 1px solid #444;
    border-radius: 2px;
    padding: 8px;
    margin: 4px 0;
    overflow-x: auto;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: inset 0 0 5px rgba(0, 255, 0, 0.1);
}

.code-block code, .output-block code, .error-block code {
    color: #00ff00;
    text-shadow: 0 0 3px rgba(0, 255, 0, 0.3);
}

.error-block code {
    color: #ff6666;
    text-shadow: 0 0 3px rgba(255, 102, 102, 0.3);
}

/* Enhanced Syntax Highlighting */
.code-block.javascript {
    border-left: 3px solid #f7df1e;
    box-shadow: inset 0 0 5px rgba(247, 223, 30, 0.1);
}

.code-block.python {
    border-left: 3px solid #3776ab;
    box-shadow: inset 0 0 5px rgba(55, 118, 171, 0.1);
}

.code-block.bash {
    border-left: 3px solid #4eaa25;
    box-shadow: inset 0 0 5px rgba(78, 170, 37, 0.1);
}

/* Enhanced Code Examples */
.code-example {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.1) 0%, rgba(0, 255, 0, 0.05) 100%);
    border: 1px solid #00ff00;
    border-radius: 4px;
    padding: 8px;
    margin: 8px 0;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 12px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.code-example-title {
    color: #00ff00;
    font-weight: bold;
    margin-bottom: 4px;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.code-example-code {
    color: #00ff00;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    padding: 4px 8px;
    border-radius: 2px;
    text-shadow: 0 0 3px rgba(0, 255, 0, 0.3);
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .terminal {
        width: calc(100vw - 20px);
        height: calc(100vh - 20px);
        border-radius: 4px;
        font-size: 12px;
    }
    
    .terminal-header {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .commands-display {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .commands-text {
        font-size: 12px;
    }
    
    .messages {
        padding: 8px;
        font-size: 12px;
    }
    
    .message {
        font-size: 12px;
    }
    
    .message.system {
        font-size: 12px;
    }
    
    .message.user {
        font-size: 12px;
    }
    
    .message .username {
        font-size: 12px;
    }
    
    .message .content {
        font-size: 12px;
    }
    
    .message .timestamp {
        font-size: 10px;
    }
    
    .input-area {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .prompt {
        font-size: 12px;
    }
    
    #message-input {
        font-size: 12px;
    }
    
    #message-input::placeholder {
        font-size: 12px;
    }
    
    #username-input {
        font-size: 12px;
    }
    
    #username-input::placeholder {
        font-size: 12px;
    }
    
    #join-btn {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .countdown-container, .room-info {
        font-size: 12px;
    }
    
    .countdown-label, .room-label {
        font-size: 12px;
    }
    
    .countdown-timer, .current-room {
        font-size: 12px;
    }
    
    .error, .success {
        font-size: 12px;
        padding: 6px 8px;
    }
    
    .reset-notification, .room-deleted-notification, .clear-notification {
        font-size: 12px;
        padding: 6px 8px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    .terminal {
        width: calc(100vw - 10px);
        height: calc(100vh - 10px);
        border-radius: 2px;
        font-size: 11px;
    }
    
    .terminal-header {
        padding: 4px 6px;
        font-size: 11px;
    }
    
    .commands-display {
        padding: 4px 6px;
        font-size: 11px;
    }
    
    .commands-text {
        font-size: 11px;
    }
    
    .messages {
        padding: 6px;
        font-size: 11px;
    }
    
    .message {
        font-size: 11px;
    }
    
    .message.system {
        font-size: 11px;
    }
    
    .message.user {
        font-size: 11px;
    }
    
    .message .username {
        font-size: 11px;
    }
    
    .message .content {
        font-size: 11px;
    }
    
    .message .timestamp {
        font-size: 9px;
    }
    
    .input-area {
        padding: 4px 6px;
        font-size: 11px;
    }
    
    .prompt {
        font-size: 11px;
    }
    
    #message-input {
        font-size: 11px;
    }
    
    #message-input::placeholder {
        font-size: 11px;
    }
    
    #username-input {
        font-size: 11px;
    }
    
    #username-input::placeholder {
        font-size: 11px;
    }
    
    #join-btn {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .countdown-container, .room-info {
        font-size: 11px;
    }
    
    .countdown-label, .room-label {
        font-size: 11px;
    }
    
    .countdown-timer, .current-room {
        font-size: 11px;
    }
    
    .error, .success {
        font-size: 11px;
        padding: 4px 6px;
    }
    
    .reset-notification, .room-deleted-notification, .clear-notification {
        font-size: 11px;
        padding: 4px 6px;
    }
}

/* Landscape Orientation Adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        padding: 10px;
    }
    
    .terminal {
        height: calc(100vh - 20px);
    }
    
    .welcome-screen {
        padding: 10px;
    }
    
    .login-form {
        gap: 10px;
    }
    
    #join-btn {
        margin-top: 10px;
        padding: 8px 16px;
    }
} 

.room-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 20px 0;
}

.room-item {
    padding: 8px 16px;
    margin: 4px 0;
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid #00ff00;
    border-radius: 4px;
    color: #00ff00;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 14px;
    text-align: center;
    min-width: 200px;
} 

.music-player-bar {
  width: 100%;
  background: #111;
  color: #00ff00;
  border: 1px solid #00ff00;
  border-radius: 4px;
  margin: 4px 0 4px 0;
  padding: 1px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2em;
  min-height: 22px;
  box-sizing: border-box;
}
.music-player-bar.hidden {
  display: none;
}
#music-title-meta {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.7em;
}
#music-title {
  font-weight: bold;
  margin-right: 6px;
  font-size: 0.7em;
}
#music-meta, #music-time {
  font-size: 0.7em;
  margin-right: 6px;
}
#youtube-player-container {
  display: none !important;
}
#youtube-player {
  width: 60px !important;
  height: 18px !important;
} 

#chat-container {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
} 

.reload-btn {
    background: none;
    border: 1.5px solid #00ff00;
    color: #00ff00;
    border-radius: 4px;
    padding: 2px 8px;
    margin-left: 8px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    outline: none;
    position: relative;
    top: 1px;
}
.reload-btn:hover {
    background: #00ff00;
    color: #000;
    border-color: #00ff00;
} 

.user-title {
  font-weight: bold;
  margin-right: 4px;
}
.user-title[data-title="New"] { color: #e0e0e0; }
.user-title[data-title="Regular"] { color: #63e24a; }
.user-title[data-title="Contributor"] { color: #0858a3; }
.user-title[data-title="Insider"] { color: #8e44ad; }
.user-title[data-title="Veteran"] { color: #ffb845; }
.user-title[data-title="Legend"] { color: rgb(255, 94, 0) !important; } 