/* NovaChat Pro - Tactical Social Edition */
:root {
    --bg-deep: #020202;
    --bg-card: #08080a;
    --accent: #ff3333;
    --accent-glow: rgba(255, 51, 51, 0.3);
    --text-main: #f0f0f0;
    --text-dim: #666;
    --font-head: 'Orbitron', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

html, body {
    margin: 0; padding: 0;
    background: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-mono);
    overflow: hidden;
    height: 100vh;
}

/* Extension Dimensions */
@media (max-width: 800px) {
    body { width: 400px; height: 580px; }
}

#app {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    background: radial-gradient(circle at top, #1a0000 0%, #050505 100%);
    position: relative;
    overflow: hidden;
}

/* PHASE CONTAINERS */
.phase-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.4s ease-out;
    height: 100%;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* AUTH SCREEN REDESIGN */
.auth-header { padding: 40px 20px; text-align: center; }
.logo { font-family: var(--font-head); font-size: 28px; font-weight: 700; letter-spacing: 6px; color: var(--text-main); }
.logo span { color: var(--accent); text-shadow: 0 0 15px var(--accent); }
.tagline { font-size: 8px; letter-spacing: 3px; color: var(--text-dim); margin-top: 5px; }

.auth-card {
    background: var(--bg-card);
    margin: 0 30px;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.auth-tabs { display: flex; border-bottom: 1px solid #1a1a1a; }
.auth-tab {
    flex: 1; padding: 12px; text-align: center; font-size: 10px; cursor: pointer; color: var(--text-dim);
    transition: 0.3s; font-weight: bold;
}
.auth-tab.active { color: var(--accent); background: #110000; }

.auth-form { padding: 25px; }
.input-field { margin-bottom: 15px; }
.input-field label { display: block; font-size: 8px; color: var(--text-dim); margin-bottom: 6px; letter-spacing: 1px; }

input {
    width: 100%; background: #000; border: 1px solid #222; color: var(--accent);
    padding: 12px; font-family: inherit; font-size: 12px; outline: none; transition: 0.3s;
}
input:focus { border-color: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }

.glow-btn {
    background: var(--accent); color: #000; width: 100%; border: none; padding: 14px;
    font-family: var(--font-head); font-size: 11px; font-weight: bold; cursor: pointer;
    transition: 0.3s; box-shadow: 0 0 20px var(--accent-glow);
}
.glow-btn:hover { background: #fff; box-shadow: 0 0 25px rgba(255,255,255,0.4); }

.status-footer { text-align: center; margin-top: 30px; font-size: 9px; color: #333; letter-spacing: 2px; }

/* BROWSER REDESIGN */
.glass-header {
    background: rgba(10,10,10,0.8); backdrop-filter: blur(10px);
    padding: 15px 20px; display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid #1a1a1a;
}
.user-pill { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--accent); font-weight: bold; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; }
.status-dot.online { background: #00ff00; box-shadow: 0 0 8px #00ff00; }

.browser-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.section-title { font-size: 9px; color: var(--text-dim); margin-bottom: 10px; letter-spacing: 2px; }

#public-rooms { flex: 1; overflow-y: auto; background: #030303; border: 1px solid #111; margin-bottom: 20px; }
.room-item {
    padding: 15px; border-bottom: 1px solid #0a0a0a; display: flex; justify-content: space-between;
    align-items: center; cursor: pointer; transition: 0.2s;
}
.room-item:hover { background: #0a0000; border-left: 2px solid var(--accent); }
.room-host { font-size: 9px; color: #444; }

.node-ops { background: #0a0a0a; padding: 15px; border: 1px solid #1a1a1a; }

/* CHAT REDESIGN */
.tactical-header { background: #000; padding: 15px 20px; border-bottom: 1px solid var(--accent); display: flex; justify-content: space-between; }
#room-display { font-family: var(--font-head); font-size: 14px; margin: 0; color: var(--accent); }
#peer-list-mini { font-size: 8px; color: #444; margin-top: 3px; }

#messages { flex: 1; overflow-y: scroll; padding: 20px; background: #020202; }
.msg { padding: 12px 16px; max-width: 75%; font-size: 13px; border-radius: 4px; border: 1px solid #111; position: relative; }
.msg.me { align-self: flex-end; background: #110000; border-right: 2px solid var(--accent); text-align: right; }
.msg.peer { align-self: flex-start; background: #080808; border-left: 2px solid var(--accent); }
.msg-user { font-size: 9px; font-weight: bold; color: var(--accent); margin-bottom: 5px; display: block; }

.tactical-input { background: #0a0a0a; padding: 15px; display: flex; flex-direction: column; gap: 10px; }
.tool-rail { display: flex; gap: 8px; }
.tool-btn { background: #111; border: 1px solid #222; color: var(--accent); width: 35px; height: 35px; cursor: pointer; border-radius: 4px; }
.input-main { display: flex; gap: 10px; }
#msg-input { flex: 1; border-radius: 4px; background: #000; }
#send-btn { background: var(--accent); color: #000; border: none; padding: 0 20px; font-weight: bold; cursor: pointer; border-radius: 4px; }

/* SCROLLBAR */
.custom-scroll::-webkit-scrollbar { width: 4px; }
.custom-scroll::-webkit-scrollbar-track { background: #000; }
.custom-scroll::-webkit-scrollbar-thumb { background: #1a1a1a; }
.custom-scroll::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* MODAL OVERLAY */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); display: flex; justify-content: center;
    align-items: center; z-index: 3000; backdrop-filter: blur(5px);
}
.modal-card {
    background: #0a0a0a; border: 1px solid var(--accent); padding: 25px;
    width: 80%; max-width: 300px; box-shadow: 0 0 30px var(--accent-glow);
}

/* Tactical Notification */
.nova-alert {
    position: fixed; background: var(--accent); color: #000; padding: 10px 15px;
    font-size: 10px; font-weight: 900; z-index: 10000; box-shadow: 0 0 30px var(--accent-glow);
}
