/* =======================
   THEME VARIABLES
======================= */
:root {
    --bg-color: #faf4ed;
    --text-color: #4c4f69;

    --input-bg: #fffaf3;
    --input-border: #e6e2e0;

    --accent: #f6c177;
    --accent-gradient: linear-gradient(45deg, #f6c177, #f5b37c);
    --highlight: #ebbcba;

    --shadow: rgba(0, 0, 0, 0.05);
    --glow: rgba(246, 193, 119, 0.4);
}

body.dark-mode {
    --bg-color: #191724;
    --text-color: #e0def4;

    --input-bg: #1f1d2e;
    --input-border: #6e6a86;

    --accent: #eb6f92;
    --accent-gradient: linear-gradient(45deg, #eb6f92, #f6c177);
    --highlight: #f6c177;

    --shadow: rgba(0, 0, 0, 0.2);
    --glow: rgba(235, 111, 146, 0.4);
}

/* =======================
   BASE
======================= */
body {
    font-family: 'DM Sans', sans-serif;
    font-size: 1em;
    margin: 20px;
    background: var(--bg-color);
    color: var(--text-color);
}

h1,
h2,
h3,
label {
    color: var(--text-color);
    display: block;
    margin-bottom: 0.2em;
    text-shadow: 0 1px 2px var(--shadow);
}

h1 {
    font-size: 2em;
    color: var(--accent);
}

p {
    margin-top: 1.5em;
}

pre {
    padding: 1rem;
}

label {
    margin: 0;
    font-weight: 500;
}

hr {
    border: 1px solid var(--input-border);
}

/* =======================
   FORM ELEMENTS
======================= */
textarea,
input,
select {
    font-family: 'DM Mono', monospace;
    box-sizing: border-box;
    width: 100%;
    padding: 0.5em;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-color);
    box-shadow: 4px 4px 10px var(--shadow), -4px -4px 10px var(--shadow);
}

textarea {
    min-height: 3em;
    resize: none;
    margin-top: 0.2em;
}

input[type='number'] {
    width: 50px;
    padding: 0.3em;
}

textarea:focus,
input:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--glow);
}

/* =======================
   BUTTONS
======================= */
.button-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

button {
    flex: 1;
    display: inline-block;
    margin-top: 10px;
    padding: 0.5em;
    border: none;
    border-radius: 8px;
    background: var(--accent-gradient);
    color: var(--bg-color);
    cursor: pointer;
    box-shadow: 0 4px 8px var(--shadow), 0 0 10px var(--glow) inset;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--shadow), 0 0 15px var(--glow) inset;
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px var(--shadow), 0 0 8px var(--glow) inset;
}

/* =======================
   LAYOUT
======================= */
.container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.inputs {
    flex: 1;
    min-width: 250px;
}

#render {
    flex: 0 0 1020px;
    width: 1020px;
    height: 1320px;
    padding: 1em;
    background: white;
}

/* =======================
   MISC
======================= */
*::-webkit-scrollbar {
    display: none;
}

* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

label+input,
label+select,
textarea {
    margin-bottom: 1em;
}
