:root {
    --bg-color: #ffffff;
    --text-color: #0f172a;
    --switch-bg: #e2e8f0;
    --switch-slider: #ffffff;
    --icon-color: #64748b;
    --icon-active: #0f172a;
}

[data-theme="dark"] {
    --bg-color: #0a0e17; /* Dark background similar to the design */
    --text-color: #f8fafc;
    --switch-bg: #1e293b;
    --switch-slider: #0f172a;
    --icon-color: #475569;
    --icon-active: #f8fafc;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.preload, 
.preload *, 
.preload *:before, 
.preload *:after {
    transition: none !important;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Theme Switch */
.theme-switch-wrapper {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    z-index: 100;
}

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

.theme-switch input {
    display: none;
}

.slider {
    background-color: var(--switch-bg);
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slider .icon {
    width: 18px;
    height: 18px;
    color: var(--icon-color);
    transition: color 0.4s ease;
    z-index: 1;
}

.slider:before {
    background-color: var(--switch-slider);
    bottom: 4px;
    content: "";
    height: 32px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 32px;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background-color: var(--switch-bg);
}

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

.slider.round {
    border-radius: 40px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Icon active states */
input:not(:checked) + .slider .sun {
    color: var(--icon-active);
}

input:checked + .slider .moon {
    color: var(--icon-active);
}


/* Logo display */
.content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 2rem;
}

.content img {
    max-width: 100%;
    height: auto;
    display: block;
}

.logo-light-theme {
    display: block;
}
.logo-dark-theme {
    display: none;
}

[data-theme="dark"] .logo-light-theme {
    display: none;
}
[data-theme="dark"] .logo-dark-theme {
    display: block;
}
