:root {
    --bg-gradient: linear-gradient(to right, #6a11cb, #2575fc);
    --container-bg: rgba(255, 255, 255, 0.1);
    --text-color: #ffffff;
    --ball-bg: #ffffff;
    --ball-text: #333333;
    --button-bg: #ffa500;
    --button-hover: #ff8c00;
    --shadow-color: rgba(0, 0, 0, 0.2);
    --border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] {
    --bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --container-bg: rgba(0, 0, 0, 0.3);
    --text-color: #e0e0e0;
    --ball-bg: #2a2a40;
    --ball-text: #ffffff;
    --button-bg: #4ecca3;
    --button-hover: #45b291;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --border-color: rgba(255, 255, 255, 0.1);
}

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

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

.container {
    background: var(--container-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 30px var(--shadow-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    position: relative;
    max-width: 90vw;
}

.theme-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    color: var(--text-color);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

button {
    background: var(--button-bg);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px var(--shadow-color);
}

button:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

lotto-display {
    display: block;
    margin-top: 30px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
