/* ===== GLOBAL ===== */
body {
    margin: 0;
    background: radial-gradient(circle, #001a12 0%, black 100%);
    color: #00ff9f;
    font-family: monospace;
    display: flex;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* 🔥 SCAN LINE */
body::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background: rgba(0,255,159,0.15);
    animation: scan 4s linear infinite;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 240px;
    background: #050505;
    border-right: 1px solid #00ff9f;
    height: 100vh;
    overflow-y: auto;
    padding: 15px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    padding: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.sidebar li:hover {
    background: #002b1f;
    transform: translateX(5px);
    box-shadow: 0 0 10px #00ff9f;
}

/* ===== MAIN ===== */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 20px;
}

/* ===== TOPBAR (FIXED ALIGNMENT) ===== */
.topbar {
    display: flex;
    justify-content: flex-end; /* 🔥 fix alignment */
    gap: 10px;
    margin-bottom: 10px;
}

/* ===== BUTTONS ===== */
button {
    background: transparent;
    color: #00ff9f;
    border: 1px solid #00ff9f;
    padding: 8px 14px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #002b1f;
    box-shadow:
        0 0 10px #00ff9f,
        0 0 20px #00ff9f;
}

/* ===== WELCOME ===== */
#welcome {
    text-align: center;
    font-size: 26px;
    margin: 5px 0 10px;
}

/* ===== TERMINAL BOX (PERFECT CENTER) ===== */
.terminal-box {
    margin: auto;
    width: 650px;
    max-width: 95%;
    height: 65vh;

    border: 1px solid #00ff9f;
    padding: 15px;

    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);

    overflow-y: auto;
    border-radius: 10px;

    box-shadow:
        0 0 10px #00ff9f,
        0 0 25px #00ff9f,
        0 0 60px rgba(0,255,159,0.3);
}

/* ===== TERMINAL TEXT ===== */
#terminal {
    text-shadow:
        0 0 5px #00ff9f,
        0 0 10px #00ff9f;

    outline: none;
    caret-color: #00ff9f;
    font-size: 14px;
}

/* 🔥 LINE SPACING */
#terminal div {
    margin: 4px 0;
    line-height: 1.5;
}

/* ===== INPUT FIELD (OPTIONAL FUTURE) ===== */
#cmdInput {
    display: none;
}

/* ===== MODAL ===== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);

    width: 400px;
    background: black;
    border: 1px solid #00ff9f;
    padding: 20px;

    display: none;
}

.modal.active {
    display: block;
    transform: translate(-50%, -50%) scale(1);
}

.overlay.active {
    display: block;
}

/* ===== SCROLLBAR ===== */
.terminal-box::-webkit-scrollbar {
    width: 6px;
}

.terminal-box::-webkit-scrollbar-thumb {
    background: #00ff9f;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .terminal-box {
        width: 95%;
        height: 70vh;
    }

    .topbar {
        justify-content: center;
    }
}
/* your existing styles */

/* navbar styles */
/* dashboard styles */
/* chat styles */

/* ============================= */
/* 🔥 SCROLLBAR (LAST LINE ONLY) */
/* ============================= */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #00ff9f;
    border-radius: 10px;
    box-shadow: 0 0 10px #00ff9f;
}

::-webkit-scrollbar-thumb:hover {
    background: #00ffaa;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #00ff9f #000;
}