/* =========================
   GLOBAL
========================= */

:root {
    --bg: #0b0d12;
    --panel: #141824;
    --panel-2: #10131c;
    --border: #242a3a;
    --text: #e6e6e6;
    --muted: #8b93a7;
    --accent: #4caf50;
    --accent-hover: #43a047;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: radial-gradient(circle at top, #151a2b, var(--bg));
    color: var(--text);
}

/* =========================
   LAYOUT
========================= */

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    gap: 18px;
}

/* =========================
   TYPOGRAPHY
========================= */

h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

h2 {
    font-size: 16px;
    color: var(--muted);
    font-weight: 500;
}

p {
    color: var(--muted);
    margin: 0;
}

/* =========================
   FORM (LOGIN)
========================= */

form {
    background: var(--panel);
    padding: 22px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 320px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--panel-2);
    color: white;
    outline: none;
    transition: 0.2s;
}

input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(76,175,80,0.2);
}

/* =========================
   BUTTONS
========================= */

button {
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: var(--accent);
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s ease;
}

button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

button:active {
    transform: scale(0.98);
}

/* =========================
   PANEL
========================= */

.panel {
    display: flex;
    flex-direction: column;
    height: 70vh;
    width: 90%;
    max-width: 1100px;

    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;

    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.panel-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;

    gap: 20px;

    width: 100%;
    height: 100%;

    padding: 20px;

    box-sizing: border-box;
}

#server-icon {
    width: 64px;
    height: 64px;

    border-radius: 12px;

    image-rendering: pixelated;

    background: #1e1e1e;

    flex-shrink: 0;
}
/* =========================
   INFO SECTION
========================= */

.panel-info {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.panel-info p {
    font-size: 13px;
}

/* =========================
   CONSOLE OUTPUT (PRO)
========================= */

#console-output {
    flex: 1;
    list-style: none;
    margin: 0;
    padding: 14px;

    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;

    font-size: 13px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* console line */
#console-output li {
    padding: 8px 10px;
    background: rgba(255,255,255,0.03);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    word-break: break-word;

    transition: 0.15s;
}
.suggestions {
    position: absolute;
    background: #161a22;
    border: 1px solid #2a2f3a;
    width: 200px;
    max-height: 150px;
    overflow-y: auto;
    display: none;
    z-index: 999;
}

.suggestions div {
    padding: 8px;
    cursor: pointer;
}

.suggestions div:hover {
    background: #2a2f3a;
}

#console-output li:hover {
    background: rgba(255,255,255,0.06);
}

/* =========================
   COMMAND BAR
========================= */

#command-form {
    display: flex;
    gap: 10px;
    padding: 12px;
    background: var(--panel-2);
    border-top: 1px solid var(--border);
}

#command-input {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--panel);
    color: white;
    outline: none;
    transition: 0.2s;
}

#command-input:focus {
    border-color: var(--accent);
}

/* =========================
   SELECT
========================= */

select {
    padding: 10px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 90%;
    max-width: 1100px;
    background: var(--panel);
    color: white;
    outline: none;
}

/* =========================
   SMALL UI IMPROVEMENTS
========================= */

hr {
    border: none;
    border-top: 1px solid var(--border);
    width: 100%;
}

/* subtle glow on focus sections */
.panel:focus-within {
    box-shadow: 0 25px 70px rgba(0,0,0,0.7);
}