/* style.css */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #1e1e1e;
    color: #e0e0e0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #2d2d2d;
    padding: 10px 20px;
    border-bottom: 1px solid #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 { margin: 0; font-size: 1.2rem; }

.config-panel { font-size: 0.9rem; color: #aaa; }
.config-panel input {
    background: #444; border: 1px solid #555; color: #fff;
    padding: 3px; width: 60px; border-radius: 3px;
}
.config-panel button {
    background: #007acc; color: white; border: none;
    padding: 3px 10px; border-radius: 3px; cursor: pointer;
}

.container { display: flex; flex: 1; overflow: hidden; }

.sidebar {
    width: 200px; background-color: #252526;
    border-right: 1px solid #444; padding: 15px;
    display: flex; flex-direction: column;
}
.sidebar h2 { font-size: 1rem; color: #888; margin-top: 0; }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li {
    padding: 8px 12px; cursor: pointer; border-radius: 4px;
    transition: background 0.2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar li:hover { background-color: #333; }
.sidebar li.active { background-color: #3e3e42; color: #fff; font-weight: bold; }
.status-dot {
    display: inline-block; width: 8px; height: 8px;
    border-radius: 50%; margin-right: 8px;
}
.online { background-color: #4caf50; }
.stopped { background-color: #f44336; }

.log-viewer { flex: 1; display: flex; flex-direction: column; background: #1e1e1e; }

.tab-header {
    display: flex; background-color: #2d2d2d;
    border-bottom: 1px solid #444; user-select: none;
}
.tab-btn {
    padding: 10px 20px; border: none; background: none;
    color: #aaa; cursor: pointer; border-right: 1px solid #444;
}
.tab-btn.active { background-color: #1e1e1e; color: #fff; border-bottom: 2px solid #007acc; }

.tab-content-wrapper { flex: 1; position: relative; overflow: hidden; }
.tab-content {
    display: none; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    padding: 10px; overflow-y: scroll; font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem; line-height: 1.4; white-space: pre-wrap;
}
.tab-content.active { display: block; }
.stderr { color: #f48771; } /* Light Red for errors */

.no-instance-selected {
    display: flex; height: 100%; align-items: center; justify-content: center;
    color: #666; font-style: italic;
}




/* HANDLIN THE COLOR LIKE IN MY NODE JS PROJECTS */
.ansi-black   { color: #000000; }
.ansi-red     { color: #cd3131; }
.ansi-green   { color: #0dbc79; }
.ansi-yellow  { color: #e5e510; }
.ansi-blue    { color: #2472c8; }
.ansi-magenta { color: #bc3fbc; }
.ansi-cyan    { color: #11a8cd; }
.ansi-white   { color: #e5e5e5; }
.ansi-bright-black   { color: #666666; }
.ansi-bright-blue    { color: #3b8eea; }
.log-line {
    white-space: pre-wrap;
    word-break: break-all;
}