:root {
    --bg-color: #f8f9fa;
    --text-color: #212529;
    --container-bg: #ffffff;
    --border-color: #dee2e6;
    --primary-color: #6aaa64;
    --primary-hover: #538d4e;
    --secondary-bg: #e9ecef;
    --secondary-hover: #ced4da;
    --font-family: system-ui, -apple-system, sans-serif;
}

body.dark {
    --bg-color: #121213;
    --text-color: #f8f9fa;
    --container-bg: #1e1e1e;
    --border-color: #3a3a3c;
    --secondary-bg: #2b2b2c;
    --secondary-hover: #3a3a3c;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
}

.theme-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    transition: 0.2s;
}

.theme-btn:hover {
    border-color: var(--primary-color);
    background-color: rgba(0,0,0,0.05);
}

body.dark .theme-btn:hover {
    background-color: rgba(255,255,255,0.05);
}

.container {
    background-color: var(--container-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    box-sizing: border-box;
}

h1 {
    text-align: center;
    margin-top: 0;
    font-size: 1.8rem;
}

.input-group {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
}

.box-preset {
    background-color: var(--secondary-bg);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    gap: 8px;
}

label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

input, textarea, select {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: 0.2s;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary-color);
}

textarea { resize: vertical; }

button {
    width: 100%;
    padding: 1rem;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

#generate-btn {
    background-color: var(--primary-color);
    margin-top: 0.5rem;
}
#generate-btn:hover { background-color: var(--primary-hover); }

.btn-secondary {
    background-color: var(--border-color);
    color: var(--text-color);
    padding: 0.8rem;
    font-size: 0.95rem;
}
.btn-secondary:hover { background-color: var(--secondary-hover); }