:root {
    --bg-color: #f0f2f5;
    --text-color: #1a1a1a;
    --container-bg: #ffffff;
    --container-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --btn-primary: #4CAF50;
    --btn-hover: #45a049;
    --accent-color: #2196F3;
    --ball-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --container-bg: #1e293b;
    --container-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --btn-primary: #10b981;
    --btn-hover: #059669;
    --accent-color: #38bdf8;
    --ball-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

* {
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    text-align: center;
    background-color: var(--container-bg);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--container-shadow);
    max-width: 500px;
    width: 90%;
}

.theme-toggle {
    position: absolute;
    top: 2rem;
    right: 2rem;
}

#theme-btn {
    background: var(--container-bg);
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
}

#theme-btn:hover {
    background: var(--accent-color);
    color: white;
}

h1 {
    margin-bottom: 2.5rem;
    font-size: 2rem;
    letter-spacing: -0.025em;
}

.lotto-numbers {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 3rem;
    min-height: 60px;
}

.lotto-ball {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    box-shadow: var(--ball-shadow);
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

#generate-btn {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    background-color: var(--btn-primary);
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#generate-btn:hover {
    background-color: var(--btn-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#generate-btn:active {
    transform: translateY(0);
}