body {
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background: linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
    transition: background 0.5s ease;
}

body.dark-mode {
    background: linear-gradient(45deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
}

.container {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

body.dark-mode .container {
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

h1 {
    color: #fff;
    margin-bottom: 30px;
    transition: color 0.5s ease;
}

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

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

.number {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

body.dark-mode .number {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.generate-btn {
    background: #ff9a9e;
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    outline: none;
    transition: background 0.3s ease, color 0.5s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.generate-btn:hover {
    background: #e68a8e;
}

body.dark-mode .generate-btn {
    background: #3498db;
}

body.dark-mode .generate-btn:hover {
    background: #2980b9;
}

.mode-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1c40f;
    color: #333;
    border: none;
    padding: 10px 15px; /* Adjusted padding for icon */
    font-size: 16px;
    border-radius: 50%; /* Make it circular */
    width: 45px; /* Fixed width for circular button */
    height: 45px; /* Fixed height for circular button */
    display: flex; /* Use flexbox to center icon */
    justify-content: center;
    align-items: center;
    cursor: pointer;
    outline: none;
    transition: background 0.3s ease, color 0.5s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mode-toggle:hover {
    background: #f39c12;
}

body.dark-mode .mode-toggle {
    background: #8e44ad;
    color: #fff;
}

body.dark-mode .mode-toggle:hover {
    background: #9b59b6;
}

.mode-icon {
    width: 24px; /* Icon size */
    height: 24px; /* Icon size */
    color: inherit; /* Inherit color from button */
}

.hidden {
    display: none;
}