/* === SECTION: THEME === */
:root {
    --bg: #121212;
    --card: #1e1e1e;
    --text: #e0e0e0;
    --primary: #bb86fc;
    --accent: #03dac6;
    --safe-top: env(safe-area-inset-top);
    --safe-bottom: env(safe-area-inset-bottom);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    margin: 0;
    font-family: sans-serif;
    background-color: var(--bg);
    color: var(--text);
    padding-top: var(--safe-top);
    padding-bottom: calc(70px + var(--safe-bottom));
}

/* === SECTION: LAYOUT === */
.app-section { display: none; padding: 20px; }
.app-section.active { display: block; }

.card {
    background: var(--card);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

label { display: block; margin: 10px 0 5px; font-size: 0.9rem; color: var(--primary); }

input, textarea {
    width: 100%;
    padding: 12px;
    background: #2c2c2c;
    border: 1px solid #444;
    border-radius: 8px;
    color: white;
    margin-bottom: 10px;
}

textarea { height: 100px; resize: vertical; }

button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.btn-primary { background: var(--primary); color: #000; }
.btn-action { background: var(--accent); color: #000; font-size: 1.1rem; }

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--card);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: var(--safe-bottom);
    border-top: 1px solid #333;
}

.nav-btn { background: none; color: var(--text); width: auto; }

.log {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #888;
    font-family: monospace;
    white-space: pre-wrap;
}