/* General Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: grid;
    place-items: center;
    min-height: 100vh;
    background-color: #f0f2f5;
    background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-48 0c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-48 0c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7z" fill="%23e0e0e0" fill-opacity="0.4"/%3E%3C/svg%3E');
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    background-color: #1a1a1a;
    color: #f0f2f5;
    background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-48 0c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-48 0c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7z" fill="%23333" fill-opacity="0.4"/%3E%3C/svg%3E');
}

.language-switcher {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.language-switcher button {
    background-color: #ddd;
    color: #333;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode .language-switcher button {
    background-color: #444;
    color: #f0f2f5;
}

.lotto-machine {
    background: #ffffff;
    border-radius: 24px;
    padding: 48px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1), 0 6px 6px rgba(0,0,0,0.15);
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.dark-mode .lotto-machine {
    background: #2c2c2c;
    border-color: #444;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

body.dark-mode h1 {
    color: #f0f2f5;
}

.display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    min-height: 70px; /* To prevent layout shift */
}

.draw-button {
    background-image: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px 0 rgba(106, 17, 203, 0.45);
}

.draw-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(106, 17, 203, 0.55);
}

.draw-button:active {
    transform: translateY(0);
}

@keyframes pop-in {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.theme-switcher {
    margin-top: 2rem;
}

#theme-toggle {
    background-color: #ddd;
    color: #333;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode #theme-toggle {
    background-color: #444;
    color: #f0f2f5;
}

#drop-area {
    border: 2px dashed #ccc;
    border-radius: 20px;
    padding: 20px;
    margin-top: 2rem;
    text-align: center;
    width: 100%;
    max-width: 500px;
}

#drop-area.highlight {
    border-color: #6a11cb;
}
