/* style.css */

/* --- CORE SETTINGS --- */
body {
    margin: 0;
    padding: 0;
    background-color: #000;
    /* The Dark City with Yellow Neon */
    background-image: url('https://blob.gifcities.org/gifcities/327UJVUOE65YRAZQMARECGM4KVHNBQHX.gif');
    background-attachment: fixed;
    background-size: cover; /* Immersive feel */
    background-position: center;
    font-family: "Verdana", "Tahoma", sans-serif; /* The 'Clean' font of the 2000s */
    font-size: 11px;
    color: #ccc;
    height: 100vh;
    overflow: hidden; /* Hide main scrollbar, we scroll inside the box */
}

/* Scrollbar styling for Webkit */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #555; border-radius: 4px; }

/* --- THE MAIN INTERFACE CONTAINER --- */
.interface-shell {
    width: 850px;
    height: 550px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* Dark Glass Panel Effect */
    background: rgba(10, 10, 10, 0.85); 
    border: 1px solid #444;
    border-top: 1px solid #777; /* Highlight on top */
    box-shadow: 
        0 0 20px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(0,0,0,1), /* Double border trick */
        0 0 30px rgba(255, 255, 0, 0.1); /* Slight yellow glow from city */
        
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

/* --- HEADER --- */
.top-bar {
    height: 80px;
    background: linear-gradient(to bottom, #2a2a2a, #111);
    border-bottom: 1px solid #000;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    padding: 0 20px;
    justify-content: space-between;
}

.title-group h1 {
    margin: 0;
    color: #ffff00; /* Neon Yellow */
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 5px rgba(255, 255, 0, 0.6);
    font-family: "Impact", sans-serif;
    font-weight: normal;
}

.status-text {
    font-size: 9px;
    color: #666;
    letter-spacing: 1px;
}

/* --- LAYOUT GRID --- */
.main-stage {
    display: flex;
    height: 100%;
}

/* --- LEFT SIDEBAR (Menu) --- */
.sidebar {
    width: 200px;
    background: rgba(0, 0, 0, 0.5);
    border-right: 1px solid #333;
    padding: 20px;
    text-align: center;
}

/* --- AEROCORE / GLASS BUTTONS --- */
/* This is the secret sauce for that Y2K Glossy look */
.glass-btn {
    display: block;
    width: 100%;
    padding: 8px 0;
    margin-bottom: 12px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    
    /* The Gelatin/Glass Gradient */
    background: linear-gradient(to bottom, #555 0%, #333 50%, #111 51%, #000 100%);
    border: 1px solid #222;
    border-radius: 15px; /* Pill shape */
    
    /* The shine effect */
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.3), /* Top highlight */
        0 2px 5px rgba(0,0,0,0.5); /* Drop shadow */
        
    transition: all 0.2s;
    position: relative;
}

.glass-btn:hover {
    /* Brighter on hover */
    background: linear-gradient(to bottom, #777 0%, #444 50%, #222 51%, #111 100%);
    color: #ffff00;
    text-shadow: 0 0 5px #ffff00;
    cursor: pointer;
}

.glass-btn:active {
    transform: translateY(1px);
    background: #000;
    box-shadow: inset 0 0 5px #000;
}

/* --- CONTENT AREA --- */
.content-window {
    flex-grow: 1;
    padding: 25px;
    overflow-y: auto;
    background-image: 
        linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), /* Darken content slightly */
        url('https://web.archive.org/web/20091026233405/http://geocities.com/Area51/Nebula/8220/grid.gif'); /* Subtle grid behind text */
}

h2 {
    color: #fff;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    font-size: 14px;
}

p { line-height: 1.6; margin-bottom: 15px; }

/* --- THE FUEL GAUGE --- */
.fuel-gauge-container {
    margin-top: auto; /* Pushes to bottom of sidebar */
    opacity: 0.8;
    filter: sepia(100%) hue-rotate(20deg) saturate(300%); /* Tint it yellow to match theme */
}

/* --- FOOTER --- */
.footer {
    height: 25px;
    background: #000;
    border-top: 1px solid #333;
    border-radius: 0 0 8px 8px;
    display: flex;
    align-items: center;
    padding-left: 10px;
    font-size: 9px;
    color: #444;
}
#chat-history {
    height: 300px;
    background-color: #000;
    border: 1px solid #333;
    box-shadow: inset 0 0 10px #000;
    padding: 10px;
    overflow-y: scroll;
    font-family: "Courier New", monospace;
    font-size: 11px;
    margin-bottom: 10px;
    color: #aaa;
}

/* Individual Messages */
.msg-row { margin-bottom: 4px; border-bottom: 1px dotted #222; padding-bottom: 2px; }
.msg-time { color: #555; font-size: 9px; margin-right: 5px; }
.msg-user { color: #ffff00; font-weight: bold; } /* Neon Yellow Usernames */
.msg-text { color: #ddd; }

/* The Input Area */
.chat-controls {
    background: rgba(0,0,0,0.5);
    padding: 10px;
    border: 1px solid #333;
}

.chat-input {
    background: #111;
    border: 1px solid #444;
    color: #0f0; /* Hacker Green text while typing */
    padding: 5px;
    font-family: "Courier New", monospace;
    width: 100%;
    margin-bottom: 5px;
}

/* Custom Emoji Toolbar */
.emoji-bar {
    margin-bottom: 5px;
    display: flex;
    gap: 5px;
}
.kaomoji-btn {
    background: #222;
    border: 1px solid #444;
    color: #888;
    cursor: pointer;
    font-size: 10px;
    padding: 2px 5px;
}
.kaomoji-btn:hover { background: #444; color: #fff; }

/* System Error Message (Hidden by default) */
#system-lockout {
    display: none;
    background: #500;
    color: #fff;
    padding: 10px;
    border: 2px solid red;
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
    animation: blink 0.5s infinite;
}


/* Tiny blinking cursor */
.cursor { animation: blink 1s infinite; }
@keyframes blink { 0% {opacity:0} 50% {opacity:1} 100% {opacity:0} }