@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

:root,
[data-theme='white'] {
    --bg-gradient: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    --container-bg: #ffffff;
    --text-color: #222;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --btn-bg: #4facfe;
    --btn-text: #fff;
    --pattern-opacity: 0.06;
}

[data-theme='dark'] {
    --bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --container-bg: #1e1e2e;
    --text-color: #f0f0f0;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --btn-bg: #ffde59;
    --btn-text: #222;
    --pattern-opacity: 0.04;
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background: var(--bg-gradient);
    color: var(--text-color);
    position: relative;
    transition: background 0.3s ease, color 0.3s ease;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23888888" fill-opacity="0.1"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    opacity: var(--pattern-opacity);
    pointer-events: none;
}

.theme-switch-wrapper {
    position: absolute;
    top: 20px;
    right: 20px;
}

#theme-toggle {
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    background-color: var(--container-bg);
    color: var(--text-color);
    cursor: pointer;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.container {
    text-align: center;
    background: var(--container-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px var(--shadow-color), 0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

h1 {
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 2.5em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.lotto-numbers {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.8em;
    font-weight: 600;
    color: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#generate {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    background-color: var(--btn-bg);
    color: var(--btn-text);
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.1);
}

#generate:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25), 0 8px 12px rgba(0, 0, 0, 0.15);
}

#generate:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
