body {
    font-family: 'Google Sans', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    background-size: cover;
    background-position-x: center;
    background-repeat: no-repeat;
    margin: 0;
    overflow: hidden auto;
    padding: 5px;
    line-height: 1.7;
}

.inf-navbar-bottom {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    font-size: 1.2rem;
}

.inf-navbar-bottom a {
    color: var(--text);
    text-decoration: none;
    margin: 10px;
}

.container {
    max-width: 900px;
    background: var(--transulent-bg);
    backdrop-filter: var(--panel-bkdrop);
    margin: 40px auto;
    padding: 40px;
    border-radius: var(--radius-lg);
    /* Large M3 Card */
    box-shadow: var(--shadow-o);
    border: 1px solid var(--border);
}

footer {
    text-align: center;
    margin: auto 60px;
    color: var(--text);
    background: var(--transulent-bg);
    width: -webkit-fill-available;
    padding: 10px 40px;
    border-radius: var(--radius-md);
}





input.title-input {
    width: 100%;
    font-size: 1.2rem;
    padding: 0.5rem;
    background: var(--alert-bg);
    color: var(--text);
    margin-bottom: 1rem;
    border: none;
    border-radius: var(--radius-sm);
}

input.title-input:hover {
    outline: 1px solid #d0d7de;
}

/* ===== Toolbar ===== */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.toolbar button {
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--border);
    background: var(--accent);
    border-radius: var(--radius-pill);
    height: 40px;
    width: 60px;
    cursor: pointer;
    font-size: 0.9rem;
}

.toolbar label {
    display: flex;
    align-items: center;
    font-size: 18px;
    padding: 0 10px;
    justify-content: center;
    background: var(--accent);
    border-radius: var(--radius-pill);
    color: black;
}


.toolbar label select {
    padding: 0.4rem;
    border: none;
    background: var(--accent);
}

.toolbar label select:focus-visible {
    outline: none;
}

.toolbar button:hover,
.toolbar label:hover,
.toolbar label select:hover {
    background: var(--accent-h);
}

/* ===== Editor and Preview ===== */
.editor-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    border-radius: inherit;
}

.editor,
.preview {
    width: 100%;
    min-width: 50%;
    min-height: 200px;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    padding: 0.5rem;
    font-size: 14px;
    background: var(--alert-bg);
    overflow: auto;
    border-radius: inherit;
}

.editor {
    outline: none;
}

.preview {
    font-family: monospace;
    white-space: pre-wrap;
}

.toggle-preview {
    margin: 0.5rem 0;
    cursor: pointer;
    font-size: 0.9rem;
    color: #ffffff;
    background: #0969da;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: bold;
}

/* ===== Dropdown & Submit ===== */
.controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}



button.submit-btn {
    background: #2ea44f;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

button.submit-btn:hover {
    background: #2c974b;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .editor-container {
        flex-direction: column;
    }

    .editor,
    .preview {
        width: auto;
    }
}