
:root {
    --bg-color: #f0f0f0;
    --text-color: #333;
    --container-bg: #ffffff;
    --btn-bg: #4CAF50;
    --btn-text: #ffffff;
    --toggle-bg: rgba(0, 0, 0, 0.1);
    --toggle-btn-bg: transparent;
    --toggle-btn-text: #555;
    --toggle-active-bg: #4CAF50;
    --toggle-active-text: #ffffff;
}

[data-theme="dark"] {
    --bg-color: #1a1a2e;
    --text-color: #e0e0e0;
    --container-bg: #16213e;
    --btn-bg: #4CAF50;
    --btn-text: #ffffff;
    --toggle-bg: rgba(255, 255, 255, 0.1);
    --toggle-btn-bg: transparent;
    --toggle-btn-text: #aaa;
    --toggle-active-bg: #4CAF50;
    --toggle-active-text: #ffffff;
}

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

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 4px;
    background: var(--toggle-bg);
    border-radius: 30px;
    padding: 4px;
}

.theme-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--toggle-btn-bg);
    color: var(--toggle-btn-text);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.theme-btn.active {
    background: var(--toggle-active-bg);
    color: var(--toggle-active-text);
}

.container {
    text-align: center;
    background: var(--container-bg);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: background 0.3s;
}

h1 {
    margin-top: 0;
}

button#generator {
    padding: 10px 20px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 5px;
    border: none;
    background-color: var(--btn-bg);
    color: var(--btn-text);
    margin-bottom: 20px;
}
