:root {
    --bg-color: #000000;
    --win-bg: #0c0c0c;
    --border-active: #4c7899;
    --border-inactive: #333333;
    --text-active: #ffffff;
    --text-inactive: #888888;
    --bar-bg: #000000;
    --font-main: "DejaVu Sans Mono", monospace;
}

/* Force the background to be black even if empty */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    color: #ffffff;
    font-family: var(--font-main);
    overflow: hidden;
}

.i3-master-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

.i3-workspace {
    display: flex;
    flex: 1;
    padding: 4px;
    gap: 4px;
    overflow: hidden;
}

/* Vertical split containers need to fill height */
.i3-split-v {
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
    overflow: hidden; /* Don't let children push the boundary */
}

.i3-window {
    display: flex;
    flex-direction: column;
    flex: 1; /* This makes the windows grow to fill vertical space */
    border: 2px solid var(--border-inactive);
    background: var(--win-bg);
    overflow: hidden; /* Crucial: Keeps the titlebar fixed at the top */
}

.i3-window.active {
    border-color: var(--border-active);
}

.i3-titlebar {
    background: var(--border-inactive);
    color: var(--text-inactive);
    font-size: 11px;
    padding: 3px 8px;
    font-weight: bold;
}

.active .i3-titlebar {
    background: var(--border-active);
    color: var(--text-active);
}

.i3-content {
    flex: 1;           /* Take up all space below the titlebar */
    padding: 20px;
    overflow-y: auto;  /* Show scrollbar only when content is too long */
    overflow-x: hidden; /* Prevent horizontal scrolling from code blocks */
    scrollbar-width: thin; /* Optional: makes scrollbar more minimalist */
    scrollbar-color: var(--border-active) var(--bg-color);
}

/* Inside .i3-content */
.i3-content h1, .i3-content h2, .i3-content h3 {
    margin-top: 0;
    color: var(--text-active);
}

.i3-content ul {
    padding-left: 20px;
}

.i3-content code {
    background: #222;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: var(--font-main);
}

.i3-content blockquote {
    border-left: 3px solid var(--border-active);
    margin-left: 0;
    padding-left: 15px;
    color: var(--text-inactive);
}


/* i3 Bar */
.i3-bar {
    height: 24px;
    background: var(--bar-bg);
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    border-top: 1px solid #444;
    line-height: 24px;
}

.manpage {
    background-color: #000 !important;
    color: #ccc;
    font-family: "DejaVu Sans Mono", monospace;
}
.manpage b {
    color: #fff;
    text-transform: uppercase;
}
.manpage i {
    color: #4c7899;
    font-style: normal;
}

#ls-output {
    white-space: pre; /* This is the secret sauce for terminal alignment */
    font-family: "DejaVu Sans Mono", monospace;
}

.bar-section { display: flex; align-items: center; }
.ws-box { padding: 0 10px; border-right: 1px solid #333; cursor: pointer; }
.ws-box.active { background: #285577; }

/* Navigation helpers */
.ws-content { display: none; width: 100%; height: 100%; flex-direction: column; gap: 4px; }
.ws-content.active-ws { display: flex; }

.profile-image-placeholder {
    width: 100px;
    height: 100px;
    background-color: #444;
    border: 0px dashed #777;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8em;
    color: #bbb;
    margin: 10px auto;
}