
:root {
    --bg-color-light: #f0f2f5;
    --container-bg-light: #fff;
    --text-color-light: #333;
    --btn-bg-light: #007bff;
    --btn-hover-light: #0056b3;

    --bg-color-dark: #2c2c2c;
    --container-bg-dark: #3c3c3c;
    --text-color-dark: #f0f2f5;
    --btn-bg-dark: #0056b3;
    --btn-hover-dark: #007bff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-color-light);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    transition: background-color 0.3s;
}

body.dark {
    --bg-color-light: var(--bg-color-dark);
    --container-bg-light: var(--container-bg-dark);
    --text-color-light: var(--text-color-dark);
    --btn-bg-light: var(--btn-bg-dark);
    --btn-hover-light: var(--btn-hover-dark);
}

#theme-toggle-container {
    position: absolute;
    top: 20px;
    right: 20px;
}

#theme-toggle {
    cursor: pointer;
    width: 50px;
    height: 25px;
    background-color: #ccc;
    border-radius: 25px;
    position: relative;
    transition: background-color 0.3s;
}

#theme-toggle .sun, #theme-toggle .moon {
    width: 21px;
    height: 21px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    transition: transform 0.3s ease-in-out;
}

#theme-toggle .sun {
    left: 2px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="%23fbc400" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line></svg>');
    background-repeat: no-repeat;
    background-position: center;
}

#theme-toggle .moon {
    left: 27px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="%23f0f2f5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path></svg>');
    background-repeat: no-repeat;
    background-position: center;
    transform: translateX(-25px);
}

body.dark #theme-toggle .sun {
    transform: translateX(25px);
}

body.dark #theme-toggle .moon {
    transform: translateX(0);
}

body.dark #theme-toggle {
    background-color: #555;
}

.container {
    text-align: center;
    background-color: var(--container-bg-light);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

h1 {
    color: var(--text-color-light);
    margin-bottom: 30px;
    transition: color 0.3s;
}

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

.number-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color-light);
    transition: background-color 0.3s, transform 0.3s, color 0.3s;
}

#generate-btn {
    background-color: var(--btn-bg-light);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#generate-btn:hover {
    background-color: var(--btn-hover-light);
}
