/* Theme Toggle Styles */

.theme-toggle {
    display: inline-block;
    cursor: pointer;
    user-select: none;
}

.theme-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 9999px;
}

.theme-toggle-track {
    position: relative;
    width: 64px;
    height: 32px;
    padding: 4px;
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border-color);
}

.theme-toggle-track.dark {
    background: #18181b;
    border-color: #3f3f46;
}

.theme-toggle-track.light {
    background: #ffffff;
    border-color: #e4e4e7;
}

.theme-toggle-thumb {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.theme-toggle-thumb.dark {
    transform: translateX(0);
    background: #27272a;
    color: #ffffff;
}

.theme-toggle-thumb.light {
    transform: translateX(32px);
    background: #f4f4f5;
    color: #18181b;
}

.theme-toggle-icon {
    width: 16px;
    height: 16px;
    transition: all 0.3s ease;
}

.theme-toggle-icon-secondary {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.theme-toggle-track.dark .theme-toggle-icon-secondary {
    color: #a1a1aa;
}

.theme-toggle-track.light .theme-toggle-icon-secondary {
    color: #71717a;
}

.theme-toggle:hover .theme-toggle-track {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.theme-toggle:hover .theme-toggle-thumb {
    transform: scale(1.1);
}

.theme-toggle-thumb.dark:hover {
    transform: translateX(0) scale(1.1);
}

.theme-toggle-thumb.light:hover {
    transform: translateX(32px) scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .theme-toggle-track {
        width: 56px;
        height: 28px;
    }

    .theme-toggle-thumb {
        width: 20px;
        height: 20px;
    }

    .theme-toggle-thumb.light {
        transform: translateX(28px);
    }
}

