:root {
    --bg-color: #f0f2f5;
    --text-color: #333;
    --container-bg: #ffffff;
    --container-shadow: rgba(0, 0, 0, 0.1);
    --button-bg: #4CAF50;
    --button-text: #ffffff;
    --button-hover: #45a049;
    --number-bg: #dddddd;
    --number-text: #333333;
    --toggle-bg: #ccc;
    --toggle-circle: #fff;
}

body.dark-theme {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --container-bg: #1e1e1e;
    --container-shadow: rgba(0, 0, 0, 0.5);
    --button-bg: #388E3C;
    --button-hover: #2E7D32;
    --number-bg: #333333;
    --number-text: #e0e0e0;
    --toggle-bg: #4CAF50;
}

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

/* Theme Toggle Styles */
.theme-switch-wrapper {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.theme-switch {
    display: inline-block;
    height: 24px;
    position: relative;
    width: 50px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: var(--toggle-bg);
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    background-color: var(--toggle-circle);
    bottom: 4px;
    content: "";
    height: 16px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 16px;
    border-radius: 50%;
}

input:checked + .slider:before {
    transform: translateX(26px);
}