/* Theme Toggle Switch Styles */
.theme-toggle-container {
    display: inline-flex;
    align-items: center;
}

/* Toggle switch container */
.theme-toggle-switch {
    width: 60px;
    height: 28px;
    background: #d1d5db;
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

/* Dark mode switch state */
.theme-toggle-switch.dark-mode-active {
    background: #34764c;
}

/* Toggle slider */
.theme-toggle-slider {
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 3px;
    transform: translateY(-50%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Dark mode slider position */
.theme-toggle-switch.dark-mode-active .theme-toggle-slider {
    left: calc(100% - 25px);
    transform: translateY(-50%);
}

/* Icons */
.theme-toggle-switch svg {
    width: 14px;
    height: 14px;
    z-index: 1;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
    pointer-events: none;
}

/* Sun icon */
.theme-toggle-switch .sun-icon {
    color: #f59e0b;
    opacity: 0.4;
    margin-left: 2px;
}

/* Moon icon */
.theme-toggle-switch .moon-icon {
    color: #6b7280;
    opacity: 0.7;
    margin-right: 2px;
}

/* Dark mode icon states */
.theme-toggle-switch.dark-mode-active .sun-icon {
    color: #fbbf24;
    opacity: 1;
}

.theme-toggle-switch.dark-mode-active .moon-icon {
    color: #d1d5db;
    opacity: 0.4;
}

/* Focus styles for accessibility */
.theme-toggle-switch:focus {
    outline: 2px solid #34764c;
    outline-offset: 2px;
}

/* Dark mode theme adjustments */
.dark-mode .theme-toggle-switch {
    background: #4b5563;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.dark-mode .theme-toggle-switch.dark-mode-active {
    background: #34764c;
}

/* Hover effects */
.theme-toggle-switch:hover .theme-toggle-slider {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .theme-toggle-switch {
        width: 56px;
        height: 26px;
        padding: 0 4px;
    }

    .theme-toggle-slider {
        width: 20px;
        height: 20px;
        left: 3px;
    }

    .theme-toggle-switch.dark-mode-active .theme-toggle-slider {
        left: calc(100% - 23px);
    }

    .theme-toggle-switch svg {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .theme-toggle-switch {
        width: 52px;
        height: 24px;
        padding: 0 3px;
    }

    .theme-toggle-slider {
        width: 18px;
        height: 18px;
        left: 3px;
    }

    .theme-toggle-switch.dark-mode-active .theme-toggle-slider {
        left: calc(100% - 21px);
    }

    .theme-toggle-switch svg {
        width: 10px;
        height: 10px;
    }
}

/* Remove old styles */
.theme-icons,
.theme-btn,
.light-btn,
.dark-btn,
.toggle-checkbox,
.toggle-label,
.toggle-ball,
.toggle-icon,
.theme-toggle {
    display: none !important;
}