body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #1e1e2e;
    color: #cdd6f4;
    margin: 0;
    padding: 1%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    min-height: 100vh;
    max-width: 100vw;
    gap: 10px;
}

.terminal-window {
    width: 100%;
    min-width: 300px;
    margin: 0;
    border: 2px solid #313244;
    border-radius: 10px;
    overflow: hidden;
    background-color: #313244;
    max-height: 95vh;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.terminal-header {
    background-color: #1e1e2e;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
}

/* Status buttons */
.terminal-header .close-btn { background-color: #f38ba8; }
.terminal-header .minimize-btn { background-color: #fab387; }
.terminal-header .maximize-btn { background-color: #a6e3a1; }

.green, .prompt { color: #a6e3a1; }
.folder { color: #f5c2e7; }
.executable { color: #89b4fa; }
.file { color: #f38ba8; }

/* Terminal content */
.terminal-body {
    padding: 10px;
    max-height: 80vh;
    min-height: 200px;
    overflow-y: auto;
    flex: 1;
}

.terminal-output {
    margin-bottom: 0px;
}

.line {
    margin: 0 0;
}

.terminal-input {
    display: flex;
    align-items: center;
    margin: 0 0;
}

/* Input styling */
input[type="text"] {
    flex: 1;
    background-color: transparent;
    border: none;
    color: #cdd6f4;
    outline: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
}

/* CLI Help styling */
.cli-help {
    font-family: 'Courier New', Courier, monospace;
    color: #cdd6f4;
    width: 100%;
}

.cli-help pre {
    margin: 0;
    padding: 10px;
    line-height: 1.5;
}

.cli-help .command {
    font-weight: bold;
    color: #89b4fa;
}

/* GUI container */
.gui {
    font-family: Arial, sans-serif;
    color: #cdd6f4;
    background-color: #1e1e2e;
    margin: 0 auto;
    padding: 0;
    display: none;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Hide GUI only when it's a sibling of the terminal window */
.terminal-window + .gui {
    display: none;
}

/* Standalone GUI page */
body:not(.terminal-window) {
    background-color: #1e1e2e;
    color: #cdd6f4;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

body:not(.terminal-window) .container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.gui .container {
    width: 100%;
    padding: 20px;
    border: 1px solid #45475a;
    background-color: #313244;
    border-radius: 8px;
    box-sizing: border-box;
}

.gui h1 {
    color: #f5c2e7;
    font-size: 2em;
}

.gui h2 {
    color: #89b4fa;
    font-size: 1.75em;
}

.gui h3 {
    color: #89b4fa;
    font-size: 1.5em;
}

.gui ul li, .gui ul {
    color: #cdd6f4;
    font-size: 1em;
    line-height: 1.6;
}

.gui .section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #313244;
    border-left: 4px solid #f5c2e7;
    border-radius: 6px;
}

.a, a:visited, a:link, a:hover, a:active {
    color: #a6e3a1;
    text-decoration: none;
}

@media (max-width: 900px) {
    body {
        flex-direction: column;
    }
}
