.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    background: linear-gradient(45deg, #a79a4f, #dbb18f);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    margin: 1rem;
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.theme-toggle.dark {
    background: linear-gradient(45deg, #4a5568, #2d3748);
    box-shadow: 0 4px 15px rgba(74, 85, 104, 0.3);
}

.theme-toggle.dark:hover {
    box-shadow: 0 6px 20px rgba(74, 85, 104, 0.5);
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle.dark .toggle-slider {
    transform: translateX(40px);
    background: #2d3748;
}

.sun-icon, .moon-icon {
    font-size: 14px;
    transition: all 0.3s ease;
}

.sun-icon {
    color: #ffa500;
    opacity: 1;
}

.moon-icon {
    color: #e2e8f0;
    opacity: 0;
    position: absolute;
}

.theme-toggle.dark .sun-icon {
    opacity: 0;
}

.theme-toggle.dark .moon-icon {
    opacity: 1;
}
