/* =================================================
   Root + Layout
   ================================================= */

body {
    margin: 0;
    background-color: #121212;
    font-family: "Segoe UI", sans-serif;
    color: white;
}

.app-root {
    padding: 10px;
}

/* ================= Title Bar ================= */

.title-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    background: linear-gradient(to right, #2A0E3F, #3B145F);
    padding: 8px;
    border-bottom: 2px solid #6A1B9A;
}

.title-left {
    justify-self: start;
}

.title-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 8px;
}

.title-label {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.logo-small {
    height: 60px;
}

.logo-large {
    height: 100px;
}

/* ================= Main Grid ================= */

.main-grid {
    display: grid;
    grid-template-columns: 14% 46% 40%;
    gap: 24px 15px;
    padding: 20px;
}

/* Utility */
.full-width {
    grid-column: 1 / span 3;
}

.col-span-2 {
    grid-column: span 2;
}

.tall {
    display: flex;
    flex-direction: column;
}

.centered {
    text-align: center;
    margin-bottom: 8px;
}

/* =================================================
   Sections
   ================================================= */

.section-box,
.section-box-wide {
    background-color: #1A1A1A;
    border: 1px solid #6A1B9A;
    border-radius: 5px;
    padding: 6px 12px;
    transition: border 0.2s ease;
}

.section-box:hover,
.section-box-wide:hover {
    border-color: #8E24AA;
}

.section-label {
    font-weight: bold;
    margin-bottom: 6px;
}

/* Flow rows (FlowPane equivalent) */
.flow-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    justify-content: center;
}

.inline-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px 24px;
    justify-content: center;
}

/* =================================================
   Buttons
   ================================================= */

button {
    background-color: #2A0E3F;
    color: white;
    font-weight: bold;
    border-radius: 6px;
    border: none;
    padding: 6px 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

button:hover {
    background-color: #6A1B9A;
}

button:active {
    background-color: #4A148C;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.primary-button {
    border: 1px solid #6A1B9A;
}

.secondary-button {
    border: 1px solid #6A1B9A;
}

/* Window buttons */
.minimise-button,
.close-button {
    background-color: #2E2E2E;
    padding: 4px 10px;
    border-radius: 4px;
}

.minimise-button:hover,
.close-button:hover {
    background-color: #444444;
}

/* =================================================
   Inputs
   ================================================= */

select,
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    background-color: #1A1A1A;
    border: 1px solid #6A1B9A;
    border-radius: 4px;
    color: white;
    padding: 6px;
    font-family: inherit;
    width: 100%;
}

select:focus,
input:focus,
textarea:focus {
    outline: none;
    border-color: #8E24AA;
}

textarea {
    background-color: #111111;
    resize: vertical;
    min-height: 120px;
}

textarea::placeholder,
input::placeholder {
    color: #CCCCCC;
}

/* Mono text areas */
.mono-text-area {
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
}

/* =================================================
   Checkbox + Radio
   ================================================= */

input[type="checkbox"],
input[type="radio"] {
    accent-color: #6A1B9A;
    cursor: pointer;
}

input[type="checkbox"]:hover,
input[type="radio"]:hover {
    accent-color: #8E24AA;
}

label {
    font-weight: bold;
    cursor: pointer;
}

/* =================================================
   Form Rows
   ================================================= */

.form-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.form-row label {
    min-width: 90px;
}