/* Theme Switch Container */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

/* Main Switch Styling */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    margin: 0 10px;
}

/* Hide Default Checkbox */
.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Slider Base Style */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1a1a1a;
    transition: .4s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

/* Slider Button */
.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: #5D3FD3;
    transition: .4s;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Rounded Edges */
.slider.round {
    border-radius: 34px;
}

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

/* Active State */
input:checked + .slider {
    background-color: #f0f0f0;
}

input:checked + .slider:before {
    transform: translateX(30px);
    background-color: #5D3FD3;
}

/* Icon Styling */
.sun-icon, .moon-icon {
    color: white;
    font-size: 14px;
    z-index: 1;
}

.sun-icon {
    margin-right: 4px;
    color: #f8c100;
}

.moon-icon {
    margin-left: 4px;
    color: #c0c0ff;
}

/* Additional hover effects */
.theme-switch:hover .slider:before {
    box-shadow: 0 0 8px rgba(93, 63, 211, 0.6);
}