:root {
    --bg-color: #f0f2f5;
    --text-color: #333;
    --card-bg: #ffffff;
    --header-color: #1a1a1a;
    --number-bg: #e0e0e0;
    --number-text: #333;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body.dark-mode {
    --bg-color: #1a1a1a;
    --text-color: #f0f0f0;
    --card-bg: #2c2c2c;
    --header-color: #ffffff;
    --number-bg: #444;
    --number-text: #fff;
    --shadow-color: rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 800 800' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.container {
    text-align: center;
    position: relative;
    padding-top: 60px;
}

#theme-toggle {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: 2px solid var(--text-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

header h1 {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    color: var(--header-color);
    text-shadow: 0 0 10px var(--shadow-color);
}

.lotto-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px var(--shadow-color), 
                0 6px 6px var(--shadow-color);
    display: inline-block;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.lotto-card:hover {
    transform: translateY(-5px);
}

.contact-section {
    margin-top: 4rem;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 20px var(--shadow-color);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.contact-section h2 {
    margin-bottom: 1.5rem;
    color: var(--header-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input, 
.contact-form textarea {
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--number-bg);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: inherit;
}

.contact-form button {
    background: linear-gradient(45deg, #4b6cb7, #182848);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.contact-form button:hover {
    opacity: 0.9;
}

.numbers {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--number-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--number-text);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2) inset;
    transition: all 0.3s ease;
}

#generate-btn {
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px #ff416c, 
                0 0 20px #ff416c;
}

#generate-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #ff416c, 
                0 0 40px #ff416c;
}

#generate-btn:active {
    transform: scale(1);
}