
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

:root {
    --background-color: #f0f2f5;
    --container-bg: #ffffff;
    --primary-color: #4a90e2;
    --primary-hover: #357abd;
    --text-color: #333333;
    --number-bg: #e9e9e9;
    --number-color: #555555;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.dark-mode {
    --background-color: #1a1a1a;
    --container-bg: #2c2c2c;
    --primary-color: #58a6ff;
    --primary-hover: #79b8ff;
    --text-color: #f0f0f0;
    --number-bg: #3a3a3a;
    --number-color: #f0f0f0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    background-color: var(--container-bg);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s;
    position: relative;
}

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

.theme-switch {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

#theme-toggle {
    display: none;
}

#theme-toggle + label {
    display: inline-block;
    width: 48px;
    height: 24px;
    background-color: #ccc;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
}

#theme-toggle + label::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

#theme-toggle:checked + label {
    background-color: var(--primary-color);
}

#theme-toggle:checked + label::after {
    transform: translateX(24px);
}

h1 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 600;
}

.menu-display {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    min-height: 70px;
}

.menu {
    background-color: var(--number-bg);
    color: var(--number-color);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

#generate-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#generate-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

#generate-btn:active {
    transform: translateY(0);
}

#generate-btn svg {
    transition: transform 0.5s ease;
}

#generate-btn:hover svg {
    transform: rotate(180deg);
}
