/* --------------------------------------------------
   GLOBAL RESET
-------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    background-color: #1e1e1e; /* Dark background */
    color: #ffffff;
    font-family: Arial, sans-serif;
    overflow-x: hidden; /* Prevent horizontal overflow */
}

/* --------------------------------------------------
   GLOBAL LAYOUT
-------------------------------------------------- */
main#app {
    padding: 20px;
}

/* --------------------------------------------------
   BUTTON THEMES
-------------------------------------------------- */

/* Primary Blue Button (Install App, Home, Dashboard buttons, etc.) */
.btn-primary {
    background-color: #007bff; /* High contrast blue */
    color: #ffffff;            /* White text */
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #0069d9;
}

/* Secondary Button (Back, Cancel, etc.) */
.btn-secondary {
    background-color: #3a3a3a;
    color: #ffffff;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    transition: background-color 0.2s ease;
}

.btn-secondary:hover {
    background-color: #2e2e2e;
}

/* Danger Button (rare: delete/reset) */
.btn-danger {
    background-color: #d9534f;
    color: #ffffff;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    transition: background-color 0.2s ease;
}

.btn-danger:hover {
    background-color: #c9302c;
}

/* --------------------------------------------------
   INPUTS
-------------------------------------------------- */
input {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border-radius: 6px;
    border: 1px solid #444;
    background-color: #2b2b2b;
    color: #ffffff;
}

input::placeholder {
    color: #bbbbbb;
}

/* --------------------------------------------------
   UTILITY CLASSES
-------------------------------------------------- */
.hidden {
    display: none !important;
}

.center {
    text-align: center;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.full-width {
    width: 100%;
}

/* --------------------------------------------------
   TERMINAL OUTPUT WINDOW (NEW)
-------------------------------------------------- */

.output-window {
    position: fixed;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 80%;
    background: #000; /* Dark terminal background */
    color: #fff;      /* White text */
    border: 2px solid #444;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    font-family: monospace;
}

.output-window-header {
    background: #111;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #333;
}

.output-window-title {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

.output-window-buttons button {
    margin-left: 10px;
    background: #222;
    color: #fff;
    border: 1px solid #555;
    padding: 5px 10px;
    cursor: pointer;
}

.output-window-buttons button:hover {
    background: #333;
}

.output-window-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.output-window-text {
    font-size: 12px; /* Your chosen size */
    white-space: pre-wrap;
}

/* Keyword colors */
.text-error { color: red; }
.text-success { color: #00ff00; }
.text-warning { color: yellow; }
.text-info { color: cyan; }
