body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #1a1a1a;
    color: #f0f0f0;
    margin: 0;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    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="%23333333" fill-opacity="0.4"%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');
    transition: background-color 0.3s, color 0.3s;
}

body.light-mode {
    background-color: #f0f2f5;
    color: #333;
    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="%23dddddd" fill-opacity="0.4"%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');
}

#theme-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #4c82f7;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.container {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #4c82f7;
    text-shadow: 0 0 15px rgba(76, 130, 247, 0.5);
    margin-bottom: 2rem;
}

.card {
    background-color: #2c2c2c;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 6px 6px rgba(0, 0, 0, 0.23);
    transition: transform 0.3s ease, background-color 0.3s;
}

body.light-mode .card {
    background-color: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 0 6px 6px rgba(0, 0, 0, 0.1);
}

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

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #f0f0f0;
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #4c82f7;
    padding-bottom: 0.5rem;
    display: inline-block;
    transition: color 0.3s;
}

body.light-mode h2 {
    color: #333;
}

#winning-numbers {
    font-size: 1rem;
    line-height: 1.8;
    color: #cccccc;
    max-height: 200px;
    overflow-y: auto;
    text-align: left;
    padding-right: 1rem; /* for scrollbar */
    transition: color 0.3s;
}

body.light-mode #winning-numbers {
    color: #555;
}

.predicted-numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.number {
    background-color: #4c82f7;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(76, 130, 247, 0.7);
}

#predict-button {
    background-color: #4c82f7;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(76, 130, 247, 0.6);
}

#predict-button:hover, #predict-button:focus {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(76, 130, 247, 0.8);
    outline: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #2c2c2c;
    border-radius: 10px;
}

body.light-mode ::-webkit-scrollbar-track {
    background: #e2e2e2;
}

::-webkit-scrollbar-thumb {
    background: #4c82f7;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3a68c4;
}
