:root {
    --bg-color: #121212;
    --bg-pattern: url("data:image/svg+xml,%3Csvg width='42' height='44' viewBox='0 0 42 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23333' fill-opacity='0.4'%3E%3Cpath d='M0 0h42v44H0V0zm1 1h40v20H1V1zM0 23h20v20H0V23zm22 0h20v20H22V23z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    --container-bg: #1e1e1e;
    --text-color: #ffffff;
    --subtext-color: #aaaaaa;
    --btn-bg: #6200ee;
    --btn-hover: #7f39fb;
    --toggle-bg: #333;
    --toggle-color: #ffffff;
}

[data-theme="light"] {
    --bg-color: #e8eaf0;
    --bg-pattern: url("data:image/svg+xml,%3Csvg width='42' height='44' viewBox='0 0 42 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23aaa' fill-opacity='0.3'%3E%3Cpath d='M0 0h42v44H0V0zm1 1h40v20H1V1zM0 23h20v20H0V23zm22 0h20v20H22V23z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    --container-bg: #ffffff;
    --text-color: #121212;
    --subtext-color: #555555;
    --btn-bg: #6200ee;
    --btn-hover: #7f39fb;
    --toggle-bg: #e0e0e0;
    --toggle-color: #121212;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    background-image: var(--bg-pattern);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.theme-toggle {
    position: fixed;
    top: 1.2rem;
    right: 1.2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background-color: var(--toggle-bg);
    color: var(--toggle-color);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 100;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.container {
    text-align: center;
    background-color: var(--container-bg);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 6px 6px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.numbers-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    min-height: 72px;
    align-items: center;
}

.generate-btn {
    background-color: var(--btn-bg);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(98, 0, 238, 0.3);
}

.generate-btn:hover {
    background-color: var(--btn-hover);
    transform: translateY(-2px);
}

.generate-btn:active {
    transform: translateY(1px);
}
